It makes sense to consult a doctor if you struggle with long-term and ongoing problems with heartburn (more than once a week, worsening, or continuous over time). This is especially if you have experienced sleep problems (diagnosed or not) or any of the silent symptoms listed above. Acid reflux, for instance, could be the reason you have problems with insomnia.
A dentist is equipped to identify two problems that present as risk factors for obstructive sleep apnea: sleep bruxism (a night time grinding of the teeth of clenching of the jaws) and gastroesophageal reflux disease (GERD), also known as acid reflux or heartburn. Fortunately, treating undiagnosed sleep apnea can provide relief for these other sleep-related problems.