Ugh that fucking sucks. I hate heartburn. I have chronic heartburn so I can totally empathize. Sometimes drinking chocolate milk helps me, sometimes taking apple cider vinegar pills helps. When it gets really bad and nothing will help I will have to sleep on a recliner. Some people say sleeping on their left side helps as well because the way the stomach is shaped.