I do understand your position.
There are 2 possibilities here: First, you have severe anxiety
which is worsening the headache and altering your bowel movements as well. Or, you could have 2 independent disorders like migraine
which would have to be looked into.
So here's what you can do:
a. For the headache, you can take Tablet Ibuprofen
1 tablet as and when required (upto 4 tablets daily). This has to be taken with food
b. Reduce your stress levels. Try some yoga, jogging or even a brisk walk.
c. Try and eliminate dairy ( and/or all sources of lactose) from your diet. Give this a 1 week trial. During this time, yoghurt can be your source of calcium. If this does not help, try and eliminate gluten
. This is found in rice, wheat, maize. See this for a complete list
d. Deep breathing exercises called pranayama can help.
Do this in this order
Stress reduction followed by breathing exercises followed by elimination lactose and gluten. Review at the end of each week how the symptoms were etc
Meanwhile, schedule an appointment with your GP. Hopefully you wouldnt need to go.
Hope this helps