Your diet, Greek for way of life, is basically a budget, a set allotment of calories or energy needed to maintain life and in pursuit of your goals, whether that be fat loss, muscle gain, or general health and maintenance.  Wherever you set that budget, you need your books to balance according to your set aspirations and goals. Energy in vs energy out set according to desired results.  As with

Am I sleeping enough? This is quite possibly the most common cause, we simply are not sleeping enough, nor is the quality of sleep up to par. Turn off all electronics 2 hours before bedtime to reduce exposure to blue light in the dark hours when the body is naturally preparing for sleep. Try make your bedroom as dark as possible, try keep your bedroom cool, or take a shower