Welcome to Healthcaremagic Forum
The symptoms you mentioned give me strong suspection of Acid peptic disease
caused by increased gastric acid
production or failure of bicarbonate defense mechanism of the stomach mucosa towards gastric acid.
The pain you have could be due to irritation of the stomach mucosa by the gastric acid.You probably have Gastritis
/ gastric ulcer.
Antacids are the treatment and avoiding pain killers ( NSAIDS ) is a part of prevention from getting severe.
Thanks for visiting Healthcaremagic.com