Stop drinking the stuff immediately. When you start to get a headache, take excedrin. It has 65 mg of caffeine per pill. Pull back and use the excedrin to wean yourself. Every time, dose less until you are down to 1/2 or 1/4 of a pill until you're done. Shouldn't take too long and you avoid the headaches.