Thanks for the query.
You are suffering fron recurrent candidial infection and urinary tract infection
I suggest you to first confirm the diagnosis by getting a vaginal swab test.
If candidial infection is confirmed, i suggest you to take prolonged protocol of fluconazole
Your Gynecologist can explain you in detail about dose and duration of this protocol.
I also suggest you to get your blood tested for sugar.
Diabetes is high risk for recurrent UTI And Candidiasis
Above conditions are not related to miscarriage.
However infection can lead to miscarriage.
Hope this helps.