I get heartburn as well. I have antacid chews that I take when my heartburn gets really bad. Heartburn could be a sign of Gerd, which could be happening if you have sleep apnea. I would bring this up to your doctor, and see if they can help you.
3 years