This appears to be drug induced Gastritis
The offending drug may be Ibuprofen
. It is an NSAID and creates gastric irritation.
You may need to
1. Stop Ibuprofen at once.
2. Use topical analgesic
creams/sprays for pain.
3. Proton pump
inhibitor for gastritis.
4. Bland diet until the symptoms improves.
5. If the symptoms persist you may need an upper GI endoscopy for diagnosis.
Consult your doctor in this regard.