Things that haunt you and are unpleasant to you are the things that gives nightmares. Something that's very sad to happen, very awkward, or may be something that happened in an instant, something bad and scary.
All these occurrences gives you nightmares.
All these occurrences gives you nightmares.