I have GERD which means that I have bad heartburn all the time. It is so miserable so I feel your pain. I take two medications that are pregnancy safe. One cuts down on stomach acid and one is the fast acting one but it lasts 24 hours. You can get both over the counter too I believe. One is pepcid and the other is prilosec. Prilosec is the one that cuts down on acid and pepcid is fast acting. If you don't want to get into taking anything regularly you can take Gaviscon which is a chewable tablet that works pretty fast. Sometimes I add that too if it's really bad. It's not lovely tasting and I swear the more you chew it the biggest it gets, lol, but it does work pretty well. I hope this helps and that you can get some relief! Oh and you can also prop up with a pillow so you aren't lying flat. That often helps too when it's bad at night.