The only time I ever get headaches is when I stop drinking coffee all of a sudden. Have you stopped eating/drinking something that contains caffeine or sugar in high doses? Maybe that's why? The only way I know of to get rid of THOSE headaches is to ingest enough of whatever it is (coffee, soda, energy drink, etc) to make the headache go away, then stop.