There are many reasons: health problems, improper sleeping posture, uncomfortable head position. Solutions, respectively, are selected based on the cause of this phenomenon. You can read the general guidelines here https://beautypositive.org/beauty/sleep-apnea-and-breathing/, but it's best to see a doctor!