have you talked to your doctor? headaches can be caused by sugar imbalances like diabetes or hypoglycemia. I have the latter and have to watch what I eat.
You can kill the pain by increasing awareness of it.
When you have a headache, close your eyes, and try to visualize the pain. Try to see exactly where it is, see the shape of it, see the color of it, the texture, the smell, the sound, the taste. Go through all your senses and see if it registers. Is it pulsating, or cutting, or throbbing, etc? Keep all your attention on it. This should make it move, and that means it is starting to go away.
You can make all the pain go away this way. If it keeps coming back, there is probably a physical reason.
I got rid of the pain of a broken wrist bone for five months this way. It kept coming back, so I went to a doctor and he put a cast on.