Did anyone else have to take many antibiotics after a D&C for Missed miscarriage or after birth because of complications?

I have been on antibiotics for several weeks. Multiple because they were worried about infection from my d&c. I have having side effect however the doctor on call says di have to finish out the prescription. I don't know what to do because either in pain from the meds they gave me. Like dark urine and back pain..? Anyone else.