First, minimize overall stress by making sure your child gets enough sleep.
A relaxing and predictable bedtime routine can help ward off nightmares – try a warm bath, an uplifting story, a song, and end with a night-light. You can also read books that talk about bedtime fears.