Specifically what kind of thyroid medicine are you referring to, the methimazole you are on?
The bottom line is that question is one that any of here could give an educated guess at answering, but your doctor is the best source of information. In the first place you would need a doctor’s opinion as to whether you really do have a candida infection, and then you could determine the cause.
Best wishes,