It sounds like your having cortisol swings like I had. Mine would start from about 4 am in the morning or so. I would be wide awake after that. It was virtually impossible for me to lose weight. Along with the other mega ton of symptoms. I ended up using Relora when I woke up at 4. I used it to normalize and reserve my cortisol overtime. I have too say at first it would dip my cortisol a little low but after about 5 days it even out acting like an adaptogen. It has been one of my favorite supplements.
Also Taurine helpes me stay asleep. It takes a few days to work into your system. But it will make you more relaxed about 5-6 hours after taking it.
I must say I am almost over this crap and I have been doing detoxes for 2 years. Yes it takes a lot of time to detox unfortunately. Keep at it there is a rainbow at the end somewhere and you will have your life back.