31 weeks and nightmares

Sandra • mommy to a beautiful baby girl and baby boy
I'm 31 weeks and I keep having horrible nightmares it's been going on for about a few weeks now. Can anyone give me tips on how to stop them or if I can take anything that pregnancy safe so I can't dream. The nightmares are breaking me I can't take them anymore. I no longer want to sleep