Most men notice increased quality of sleep on TRT. Some however do note having a harder time sleeping, which can sometimes be the case if they're less exhausted. In even more rare cases their dose needs to be reduced to help them have an easier time falling asleep.
In general if you're not having negative impacts to your sleep with TRT, you can follow a traditional twice weekly injection schedule which is easiest for you maintain consistently.
If you are having a hard time with sleep related side effects, then increasing the frequency (which reduces the spikes in Testosterone & most side effects) should help. You can also try subq instead of IM to create even more even levels.
Specifically for sleep related injection times, some trial & error may be needed. Since it takes time to uptake, taking it right before bed so that by the next night the spike is mostly over may help. Taking it early in the morning so that your spike is reducing towards bed time may also help. This one will wind up more up to how you react than anything.