Migraine help!!!

What can I take for a migraine during the TWW? I'm 4dpo right now. I usually take Imitrex. I'm not as concerned about harming the baby because I'm sure the implantation hasn't even occurred yet, I'm more worried about interfering with the attachment to my uterine wall or something like that. 😩 I worked so hard to get to this place that I really don't want to ruin my chances of a BFP this cycle.