Hormones sometimes trigger migraines. I don’t know your sex and age, but you happen to be going through menopause this could be related.
I know this isn’t helpful but if ot keeps happening it’s something I would ask my doctor- to check my hormones are okay. And yes you can have hormones out of whack if you are male too.