Hello
Welcome to health care magic.
I share your concern.
Looking at your description it doesn't seem to be too serious, so you shouldn't worry at all.
Here, I would like further information for better assessment of the condition like
your age.
Relevant medical history
have you ever had similar complaints in the past?
I would advise you for antiacidity medicine like
pantoprazole or
ranitidine group of drugs with antacids for 4-5days.
Don't take
Ibuprofen empty stomach and have lots of fluids which could be responsible for your
indigestion and stomach problem.
you should try to find out the cause for headache which might be related to number of conditions like change of sleep patterns, stress and anxiety, fatigue or neurological disorders.
Instead of Ibuprofen I would advise you for
acetaminophen for headache.
Hope I could answer your question please feel free to ask for follow up question with all the details I have asked for, so that I will be able to tell you more more precisely.
Best wishes