I've had sleep problems due to training, accompanied by several other factors, but meanwhile my Thyroid was excelent. The cause in my case was that there was no cooling down after training sessions, in a sense that afterwards there were still stimulating factors around me - lights, sounds, different stressors, excitement caused via various ways, objects of focus, studying, interraction with others. The 4 hour daily Olympic lifting, as was in my case since 12 y.o boy, was burning my central nervous system to the point of there's no more. Aside the progress with the weights, which does not concern us here, and that I felt broken nearly 24/7, what was unexpected for me was the mental issues - sleep problems, nightmares, emotionally always on edge, irritable to a degree I've never been for years afterwards. How my coach back then, a masterming by all means, put an end of all this, was a list of few simple things to do. What I had to do is to lie in bed with the falling of the sun, because once the clock crossed 11-12 o'çlock, afterwards the organism begins to listen you - No sleep? Ok, let's not sleep.
Minutes before going to sleep, as I already mentioned, a glass of wine. But good, red wine, without spirt. Some wines just push you to do a lot of things but not sleeping. They did this with the whole olympic team actually. Before the glass of wine, there was a stay in a hot bath-tub for 30-60 min. The hottest one can handle, of course to a point that it's pleasant. Also, no eating at least a hour and half before sleep. And again - light. No gazing at computers, phones, crisp tv screens and such. It requires a little more discipline the first times, but try.
A far as sometimes the stimulating effects of some wines goes...there are ways to deal with this.