Some factors, such as scrolling through our phones, vitamin D deficiency, or late afternoon coffee can affect the quality of our sleep. Losing an hour or two of sleep for a few nights might sound harmless, but the National Heart, Lung, and Blood Institute (NHLBI) says this can be just as bad as a single night of no sleep.