That sounds dreadful. I've never had a sex nightmare, but my nightmares are funny, they start with the fear then my mind tries to build something to justify it. Sometimes so obviously & clumsily I get lucid or wake up.
I hope next time you can sex your way right out of the fear.