I had to avoid caffeine for some time due to medical issues. I really missed the morning ritual of waking up slowly with a cup of coffee, so I replaced it with decaf coffee which satisfies the ritual part of my morning at least. Definitely a 'YMMV' thing and it wouldn't solve the headaches of course, but it at least makes the morning a bit nicer.