Factors such as excessive exposure to blue light, eating too close to bedtime, high caffeine and alcohol intake, and irregular sleeping patterns can contribute to insomnia and other sleep disorders.