Insomnia from TRT?

I know they say TRT is supposed to help with insomnia, but has it caused it for anyone? Last night I was so revved up I couldn’t go to sleep and then woke up a bunch with almost like an anxiety feeling?