Hi.
Although further more info needed to make a clear cut diagnosis. But let's workout some thing with the available history and possible options.
First of all , we think of
acid peptic disease (secretion of excessive acid in the stomach leading to ulcer formation) . It is a quite common condition and when you are having the pain , taking an
antacid syrup can relieve the symptoms.
Next we take up the option of
ischemic heart disease . To support this option we need to know about your age , built and weight. If your BMI is more than 25 and and you are more than 40 years old or having co-existing chronic illness like
diabetes mellitus or
hypertension or
hyperlipidemia. Then this option is highly likely .
Lastly we can discuss a less likely option of
pancreatitis. It can also cause similar symptoms but it is less likely for pancreatitis to have symptoms for such a short period of time an go away on its own without any proper medical care.
So to conclude seeing upon your description, i suggest firstly you need to get evaluated for any evidence of cardiac problem. Then if found no issue you may need to visit a surgeon for discussing the option of pancreatitis.
Wishing you best of health.
Regards