Perhaps this is a temporary phenomenon.
My daughter had similar problems with dark.
And they began after the child told her very scary tales. But with age, it passed.