Hi. Sorry you're going through this! It's hard enough to stay committed to fitness without being weighed down by chronic pain!
This is an extremely common topic around here. As you'll see from our archives, many people with migraine are also triggered by exercise:
https://migraine.com/search?s=exercise%20trigger
As for a remedy, you might first explore changing up your routine. See if you can figure out if there's a specific movement (bending, lots of effort, etc) that causes the attack, or if it's all exercise generally. You may find you do better with lower impact activities or shorter periods of exercise, a different time of day, etc.
You should also let your doctor know about this new trigger, as any change in your migraine experience is worth investigating.
I hope you can find a routine that works for you and doesn't lead to migraines! -Melissa, team member