Could a Lack of These Vitamins Be the Reason for Your Restless Nights? – CNET Your diet directly impacts your quality of sleep. A deficiency of these key vitamins and minerals may be keeping you up at night.