That's a lot of pills and a lot of headaches. Too many in fact, because most of them could have been avoided in the first place.
Headaches come in several varieties, but the most common types are tension and migraine.
Drink lots of liquids Especially when it's hot. Dehydration can bring on headaches. Get regular exercise Exercise helps in three ways. Be careful not to overdue it though. Exercising too hard or trying to lift weights that are too heavy, can bring on exertion headaches.