I have a theory that most guys who are suffering from this sleep issue on TRT are also suffering from some level of ED. I also hypothesize that cortisol has something to do with this. That high strung cortisol feeling, waking up early with anxiety is like a snowball leading to poor sleep, and poor erections.
I was prescribed Mirtazapine by the VA years ago for a depressive episode. If you want to sleep like a rock, try that stuff. Has to be the strongest sleeping pill ever produced and is proven to lower cortisol by roughly 40%. I have recently started it again to see if it makes any difference in my boners. It massively improves sleep so it'll be interesting to see if the two are correlated at all, at least in me.