The Tractate Berachot says that a person sometimes dreams what they saw during the day.
Nighmares develop sometimes by the thoughts of the day. Thus it makes sense for parents to disallow programs, videos or other media that will scare the children. If you think about it, even the News could be a possible source of bad dreams.
There are ways in Judaism to quell nightmares.
The Torah prescribes that we recite the Shema Yisrael before retiring at night. Reciting it reduces nightmares and allows children and adults to have a pleasent night’s sleep.
For a Free Shema Yisrael Card see:
Jerusalem Life Freebies & Judaica