Keep a regular sleep block after the shift, use blackout curtains, limit caffeine to the first half of the shift, and eat a light meal rather than heavy food at 3 a.m.
If you are constantly exhausted, talk to a doctor.
This is general information, not a substitute for medical advice. If you have a medical condition, are pregnant, or take regular medication, talk to your doctor first.