Hi,
I take a lot of Indomethacin and really have to baby my stomach. I will be working with a headache neurologist next month to try and find an alternative because I don't think my stomach can take much more of this. (So far, Indomethacin is the only thing that works on the "back of the head, electric shock type pain".) I take Maalox and an occasional Pepcid. Prilocec is another one you can take for two weeks to help your stomach heal. I cut my coffee intake to 1 cup of low acid coffee a day. I drink it with a lot of milk. I avoid anything high acid like orange juice. If you have to take medication in the middle of the night, have milk and crackers or a bagel at your bedside to take the medication with. Sometimes, I have to take Indomethacin in the middle of the night and milk, food and a swig of Maalox really help.
You might find some relief by going to a headache neurologist. Could you be getting rebound headaches which can happen with daily OTC pain med use? There are other classifications of medications that might not be as hard on your stomach, work better for migraines and not cause rebound problems.
Hope you can get some relief from headaches and stomach irritation soon.
Janet