My big problem for years was my sleep but I managed to solve the problem. I worked a lot on nutrition and I had eliminated, as is often said, gluten and dairy products and lots of other things to no avail. Well, I finally found: it's the sugar and so I no longer have dessert and from the first day I had a big improvement in my sleep. It's really hard not to have dessert and nothing sweet but it's worth it. All I have now during the day is a few fruit.
Consuming any types of sugar will greatly impact your quality of sleep, regardless if its organic cane sugar or processed sugar. If you crave sweets try keto snacks like (stevia/malitol/xylitol, etc.) sweetened chocolate or make your own. Honey and pure maple syrup are considered sugars, as well, keep it to a minimum.