It seems that you might be having some acute infection in your genital tract after miscarriage
giving rise to all these problems.
Consult Gynaec and get examined.
A course of higher antibiotic will give you relief.
Meanwhile youmay take ibuprofen
combination tablet as and when required.
Ok and take care.