I've tried 3 forms of magnesium, this ionic liquid one:
https://www.amazon.co.uk/gp/product/B005PFK3YS/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&psc=1
plus transdermal magnesium and magnesium bisglycinate. They just helped a bit the first few days and then the effect wore out. At least none of these gave me loose stool, as with magnesium chelate and magnesium citrate.
I read your message about the blubox tinted glasses and I was thinking about buying a pair, but I would like to try again with some melatonin first, when I wake up at night, along with some glycine before bed.
Also, I read that the glasses should wrap around the eyes, in order to avoid having the blue light hitting your eyes from the sides, but I don't know if that's an overkill to be honest.
I have the same issue with waking up warm and sweaty, at the point that last night I had to open the window to get some cold air in, while my wife was covered with a sheet and a throw.
I flagged out that the issue is most likely high E2, as Dr. Saya told me on my first checkup with him, but I keep hearing people on this forum saying that it's actually low E2 to cause the issue, which is the exact opposite of what my blood tests are showing.
When my E2 was low I was having serious anxiety at bedtime and it was impossible to fall asleep, but, when I was eventually falling asleep, I was getting those 5-6 hours of uninterrupted sleep.