When you do have a headache, avoid jarring, high-impact exercise like running or kickboxing because it's likely to aggravate the pain. Intense exercise will also cause you to sweat, leading to dehydration, which can worsen a headache as well, Ramadan says.