Relate to a lot of this! Wicked insomnia after starting supplements / precursors from a naturopath made me think a lot about sleep in the early days. Bottom line, I noticed (with a sleep log) that an undefinable cycle of better sleep / worse sleep linked to detox was repeating in the background (several days or a week on, several days off). At first, I related my sleep to the sleep aids I tried, but now I know this sleep rhythm operates under the surface, and I can work with it or against it.
After four years of trialling, this simple list has really improved overall sleep and healing. As you can see it has a lot to do with helping detox...
Coffee enemas--stopped days of all-night crippling insomnia
Magnesium malate or glycinate (otherwise I avoided most supps in the early days as they could imbalance me further)
"Trace Minerals" electrolytes
Diatomaceous earth --this was huge! Adds at least an hour to my sleep every night
Methylation supps--tricky here, but more than 500 mg methylcobalamin makes my sleep worse, 500 or less better. Also, gotta watch those cofactors...
Live culture kefir--hard to relate to sleep directly, but more for overall well being and gut health; initially caused histamine itching that messed up sleep for awhile, but smaller amounts and B12 have eliminated that in time
Even with all of the above, I still have these downcycles of more fractured sleep (hard to get to sleep, get back to sleep, or even remembering if I was just sleeping!) which feels like my old friend elevated glutamate (calm, but wide awake and alert) which usually means I have overdone something. I first felt elevated glutamate when I took a supp with too much taurine for too long that my liver couldn't clear fast enough. Now I think it has something to do with my stress response to cleansing. I have elevated metals among other things.
It was when I started keeping a sleep log in the first couple years that I realized the sleep aids I thought were working (like melatonin, phosphatidyl, lactium, valerian, benadryl etc etc etc), really only made a difference when I was on the "off cycle" of my own multi-day detox rhythm. None of them worked consistently.
During the "on cycle" when sleep is more challenging, the following made it worse--high glutamate foods, high copper foods, eating too much protein too late, staying up past midnight when they say sleep quality degrades.
Weirdly, the most INFALLIBLE test I had that I was in a more excitable / glutamate state that would make sleep dodgy was: 1. annoying commercial jingles would bang around in my head and I couldn't let them go...2. I couldn't yawn if you paid me. Glutamate! (Hormone test confirmed this and nothing else was elevated.) Breathing can help. Inducing yawning during the day helps reset my energy when I am under stress.
Funny, during the worst times, boring, distracting tv (and not brooding about sleeping) was the BEST sleep aid!!
Good luck everyone!