Took Midol instead of Tylenol, now im worried.

My husband and are TTC and on Cycle day 8. Ive had a headache and some cramping on my right side. I asked him if hed get me some Tylenol.. he got up and gave me 2pills. Its wasnt until after i got them down that i realized it was Midol. He told me they have the same ingredients and that its fine. I explained to him no it not fine. If im pregnant it can be harmful. Now im freaking out and worried that if i am pregnant that i could miscarry. Should i worry? How long will it last in my system? We have baby danced every other day and now im worried this will just ruin everything. I dont know what to do. I just want to cry. If we finally do get pregnant and miscarry itd crush me beyond belief all because i thought i was taking the right medicine. Obviously he didnt know it wasnt safe. Please try to be nice with your comments we are new to TTC and just want some help/ advice. If you have nothing nice to say dont bother commenting.