I'm more prone to nightmares when I'm in a bed with someone else.
The majority of my nightmares follow a theme of it being my best friend that's tried to cause something to harm or kill me.
These are definitely connected. Your subconscious is extremely paranoid.