You should understand, some of our bodies are so prone to these infections and we should be careful in all aspects of eating and hygiene. As mentioned I was cured for 10+ years and now the infection which came was about 95% less than what it was then. This time I ate 2 pomegranates everyday for a week and I got relief.
Normally Ayurveda medicines are totally safe. You can consult a Ayurveda doctor so that he can confirm this by taking into account all other medications you are taking, other issues you have and family history. Also take the dosage at the exact time they asked. Sometimes for worm infection they ask to take the medicines in warm weather.
Also keep your finger nails totally short and limit non veg food till cured. This was also an advice given to me by doctor.