Caffeine, known to help alleviate headaches, may cause them if consumed in large quantities.