Several times during my 3 long MCs I started to get headaches perhaps not of the magnitude of what you describe or perhaps because the moment I would feel it coming on I would just guzzle a quart of water and more lemonade. This worked for me each and every time. The headache would be gone in a matter of minutes.
Give it a go next time you feel a headache coming on. If it works for you you will have done yourself a heck of a lot more good than taking any kind of toxic substance.