J.W.
I have had bouts of nightmares as well. For me stress is the trigger. Add to that dwelling on something right before turning in and you have vivid nightmares.
I would suggest trying to figure out what your trigger is and removing that. In the mean time try clearing your thoughts before you go to bed. Think about kittens and puppy dogs, just not something you are actually being thoughtful about.