According to new research, insomnia and depression may be increasing your risk of frequent nightmares.