Hey, you poor thing - you need all the rest you can get at the moment. Not good going getting to sleep at 230am !!!
I had bad heartburn with pregnancy #3. To the point where i used to 'get scared' of night time, cause i was so fearful of a 230am sleep time !!!!

I found peppermint rennies helped, AND my frame of mind. I know that may seem like hocus pocus, but if i was worried about anything (getting my DD to kindy on time , or managing the load of ironing i had - not life threatening things,but important things to me) my heartburn was worse. I found my worrying about the heartburn, often made the heartburn worse.....I dunno if i making sense. I hope you get it sorted and get some well deserved rest.....