In my opinion, I think your miscarriage is NOT due to the 消炎藥.
Coz, 1st becaseu u have Then docotor will never give you medicine that will harm your baby. 2nd, I have search over web-site, most early miscarrige is due to chromosome problem especially advance age woman. Early pregnancy miscarriage that due to medicine is extremely rare. The drug has to be extremely strong and really harmful for that to happen. Looking at the drug you took, I have plenty of freinds who took that during early pregnancy too, but they all delievery healthy baby at the end.
If you are still queries about that, you can find the drug name and ask the docotor and also you can also search the drug over the web-site, they will give you all the info.
Dont guess too much. Just find out and do not guess the reason.
I guess age is a very important reason for repeated miscarriage.