Welcome to HCM forum
The pain can be due to acidity or gastric oesophageal reflux which is very common in pregnancy
for which you should avoid spicy food and drink cold milk and take an antacid
.Another cause can be pressure of baby on diaphragm and it can be muscular pain
and lack of sleep also causes similar pain.It is better to consult your obstetrician for further evaluation.
Best wishes and take care