Welcome to the site!
Are you well-hydrated before your workout? Are you drinking water during and after? Dehydration is typically the most common cause of headaches when exercising.
"You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down but the staying down." Mary Pickford