My PDoc mentioned there's a med that helps with nightmares, I don't recall the name and it didn't come down to switching sleeping aids. But there's a med.
I keep a journal and detail my dreams as much as possible, every color, sight, sound, color, feeling, even if it looks like a jotted mess, it's the details not story that is useful in analysis. That helped me, greatly...