No. Unfortunately when sleep starts to become poor, it’s quite common for people to fear going to bed. They are worried about what happens to them at night.
Sleep problems like insomnia are usually a habitual problem so they are on a different pattern.
Your brain has gotten used to a very different pattern of sleeping. Whilst you wouldn’t consider it a pattern, your brain does and that’s why nothing is changing.
A fear of sleeping can certainly be a trigger of this problem or a side effect of this problem.