You could be having acid reflux
and possible peptic ulcer disease
.First stop eating oily,spicy food.
Drink plenty of water.
You should never be on an empty stomach for long periods.
Start antacids before meals like omeprazole
Dont take ibuprofen before you take the antacids.Always after food.
If the pain increases,you need an ultrasound
and prescription antacids so please see a doctor.