Miscarriage on birth control

Melissa
I just started taking a birth control pill a month ago. I start a new pack tomorrow. Last night while I was on my period, I thought I had a blood clot. Turned out it was a fetus about 3 weeks old. I feel so depressed and confused. I was also taking ibuprofen and I was on an antibiotic during this time. Could any of these have caused the miscarriage?