You can get a 1st class medical with sleep apnea. Trust me

It's scary when you first start the process, and there's a fair amount of red tape, but you'll get through it.
If they put you on a C-Pap machine (and if you have S.A. they probably will) for about the first week you'll want to throw it out the window. Or break it. Into a million little bitty pieces and then stomp on them.
Give it a chance, get to know it, get used to it, try a different mask design if you need to, but
don't give up.
An alternative is surgery, which depending on your specific circumstances you may or may not be a candidate for. You can discuss this option with your pulmonary doc.