I have experience in that, I have constant nightmares that wake me up with a state of horrible anguish. A few months ago I spent weeks in which I didn't sleep more than an hour at a time, I began to fear the night and couldn't sleep for fear of what I might dream. Currently I take antidepressants and anti-anxiety drugs, which help me get a little more rest. I really think my nightmares are going to drive me crazy.
Someone here mentioned to me that there are pills to avoid nightmares, tomorrow I have an appointment with my psychiatrist and I will consult him