I had the same problem and it was acid reflux along with an ulcer. I took prilosec before it went OTC and it worked great for a couple of years.
It gradually became much worse and began happening every night! I finally got a THIRD opinion and found out I had gall stones.
5 years after surgery and no problemo!
Hope you feel better soon!
Kim & Lucy