Try dream spinning. It forces a scene reset, and might cancel the nightmare. Be mindful of false awakenings, however.