Welcome to HCM,
After going through your history,please understand this is due to mixed infection and one of them is predominant and then another one becomes manifested.
You do not get infection by taking treatment,hope you will improve soon and then take care of your immunity and personal hygiene.
Recurrent infection with low virulence organisms like fungi we should search cause like Diabetes
and any other which can reduce immunity.
To improve immunity keep in good health take care of diet and physical activity.
Personal hygiene is also very important for both the partners.
Please do not worry it won't be a cycle of infections.
once you free of infection just take good care of yourself.