When you start keto your hormones go whacky for a while, that’ll give you issues staying asleep everytime!
Was most likely the Valerian, melatonin does nothing for keeping you sleeping, only helps falling asleep. The magnesium may help, just make sure you’re taking enough as a whole and just not at bedtime, most people are pretty magnesium deficient as is.
If you want a stack that works amazing, Melatonin (a normal amount, like 1-2mg), 5-HTP, PharmaGABA, Magnesium, L-tryptophan, L-theanine. That’s basically a ripoff of the Doc Parsley’s sleep remedy, which works amazing but is very overpriced. He’s a Doctor and former Navy Seal that works with people who can’t sleep to save their life.
I buy most of those from Nutricost to keep it affordable (and it’s good stuff) and that way it’ll last a decent while. Nutricost also has a sleep formula which is pretty descent, but not as good as ripping off sleep remedy, it’s pretty much like a Sleepytime Tea but in pill form.