Can clomid cause increase in tsh/thyroid issues?

I took clomid in September, October and December. In October, my blood work showed that my tsh was up close to 5. So my doctor put me on levothyroxine. Then it came down to around 1.9. This month I am not taking clomid and my tsh number has come way down (1.2 not below normal range) but I’m having horrible dry eye and insomnia. It then occurred to me that maybe it was that first month of clomid that set this off. And now that I’m not taking clomid I am reacting badly to the levothyroxine. My doctor lowered my dose of levo by 50% a few days ago and I’m still having these symptoms, plus a little heart racing. Any insights much appreciated!