Our bodies are all different.
If your insulin is really low from diet, one thing I saw someone mention on a fasting sub was that she does ADF if I'm remembering correctly and follows an AIP diet, she needs both to lose.
Are you still on the med that caused the weight gain? If yes, can you try a more weight neutral one? NAC is also great for mood.
Magnesium usually makes people sleepy, that is interesting.
Fantastic that you have an early bedtime, circadian rhythms are so important for health. I am listening to this on Audible these days https://www.amazon.com/The-Circadian-Diabetes-Code/dp/1785044028