Headache experienced after strenuous physical activity like exercising, is known as exertional headache.
There could be underlying abnormalities in your brain and brain vessels (aneurysm or arteriovenous malformation), and these must be excluded or determined via MRI and MRA (visualization of the blood vessels) of the brain blood vessels.
When there is no organic cause, this headache is considered benign, and is usually responsive to an anti inflammatory drug, indomethacin, taken before the exertional activity.
People with history of migraines are more susceptible to this type of headaches.
Visit your physician as soon as possible!
Marija