@Alexander is right. I’ve been dabbling with Keto and Intermittent Fasting and both seemed to affect my already few hours of sleep quality.
I switched to a high protein, moderate fat and low carb diet and that seems to work amazingly well for me. Also, I keep my fasting to the day and reserve my carbs for the dinner and that absolutely helps with sleep.