Thanks for the query.
Some amount is discomfort is common during late pregnancy
due to increasing size of the uterus
The possible cause is regurgitation of the food leading to esophagitis
usually that can relive to some extent with antacids.
But as you are having severe pain
better to consult gynecologist once to rule out serious conditions like cardiac problem and get examined to find out the possible cause for your problem.