When I was pregnant, I got heartburn every night when I tried to go to sleep. I found that drinking a glass of milk before going to bed helped prevent it from happening.
I had the worst heartburn with my first pregnancy. I ate a lot of Tums because nothing else helped. I don’t remember how far along I was when my doctor said I could safely take Zantac. Maybe the third trimester, but it helped a lot. And my daughter had almost no hair until she was a toddler, so you can ignore everyone that says you’ll have a hairy baby.
Please be careful if it persists. I had “heartburn” for 3 weeks and I treated it with over the counter medicine, until it got so bad I ended up in hospital – it turned into a perforated stomach ulcer.
But I will second @Frenchfry ‘s suggestion of Zantac. It’s good stuff.