@Polar334 ok interesting. What’s your fat intake like? Peat has often recommended fat in the evening before bed like whole milk or ice cream as fat is much slower burning and a decent energy source for sleep.
Also, have you tried a t3/t4 combo at night? This can also be helpful as the t4 can go to the liver and again act as almost a slow burning energy during sleep.
How’s your liver health in general? Poor glycogen storage can really affect the ability to remain asleep. If you can’t tolerate black coffee without cold extremities then you can assume glycogen storage is poor.
Aspirin can help lower cortisol and before bed can bring about an earlier onset of sleep than you might normally experience if your cortisol is high at night.
When do you eat your last meal of the day typically? Further away from sleep is not typically considered optimal especially if glycogen storage is poor.
Finally, do you have any sense of your serotonin? High serotonin can adversely affect quality of sleep. Many like cyproheptadine as a serotonin antagonist, (I personally do better with Benadryl).
Of course there is so much we can look at. Diet, lifestyle, exercise, work stress, etc, so this isn’t by any means an exhaustive list, but maybe there’s something here that will hit for you?