I didn't necessarily have insomnia, but I did push myself to pull "all nighters" frequently for study, work, and partying. On average my bedtime used to be 1 am even when I was not pulling an all nighter. But the all-nighters would usually happen at least once a week, or even 2 or three times. I definitely consider this a factor in getting sick.