You can avoid it by practicing good ''Sleep Hygiene'' such as using naps with care, avoiding alcohol and caffiene, and limiting worry (if you can)
Hey there! I just started doing shift work and I really like it. That's good. So you haven't had to deal with insomnia or being too sleepy due to working weird times of the day? No, that sounds awful. I didn't know that was a real thing. Yes, it's considered a real disorder, and sometimes causes people to fall asleep at work. That's rough. I hope I can deal with it better. My girlfriend is already on my back about my schedule.
Sleep hygiene recommendations include establishing a regular sleep schedule, using naps with care, not exercising physically or mentally too close to bedtime, limiting worry, limiting exposure to light in the hours before sleep, getting out of bed if sleep does not come, not using bed for anything but sleep and sex, avoiding alcohol as well as nicotine, caffeine, and other stimulants in the hours before bedtime, and having a peaceful, comfortable and dark sleep environment.