it can be a mere coincidence that you stared having pain like this when you started using CPAP.
the best way to confirm the exact cause is to have a dental check up at a dentist
. there has to be some underlying cause for that kind of pain which is purely dental in origin. hope you see a dentist soon.