Caffeine and TTC

I get severe migraines quite often, I have for more years than I can remember. I've been to the doctor for scans and tests and nothing shows up, they just say it's genetic (all the women in my family are migraine sufferers) While TTC and pregnant, doctors suggest no, or very low, caffeine consumption. I don't take prescription meds for my migraines because excedrine or a cup of coffee works better for me. I know not to take asprin (so excedrine is out) while pregnant, but what about coffee? And is my daily cup of coffee affecting my ability to conceive? I had a mc in December. It took us 4 months to conceive and this is our 3rd cycle trying after our mc