One of the things I noticed, when consuming additional Vitamin D, was the increase in dreams.
In fact, that is what I tell people. They will know if they are getting enough vitamin D if they start having pleasant dreams.
I never noticed nightmares.
My wife has nightmares, because I CUT cheese in my sleep.