I was a migraine-per-year person as a kid and migraine-per-quarter person for much of my adult life.
I kept a food log and identified that a caffeine and chocolate combo to be a consistent trigger.
In addition if too bright of a light shined in my eyes(let’s say a car door shut and the sun reflected off of the door’s window as I looked at it) it would also trigger a migraine.
After working to limit those triggers I’ve found that I don’t get migraines much anymore. Adding in sumatriptan when they do come on has been helpful.
If you find yourself with migraine symptoms I definitely recommend trying to identify the triggers, food, stress or otherwise.