Protecting eight hours of nightly sleep is crucial for academic success, especially in math and science, a study reveals.