Addressing the underlying emotions or conflicts in your waking life can help reduce the frequency of distressing dreams. Techniques like relaxation, meditation, and maintaining a consistent sleep routine might also be beneficial. Staying away from violent media can also help.