First of all I should say I am not a psychologist and I am not a professor, if you have this kind of illness, go to a doctor first.
İnsomnia can be about trauma, physical problems and/or spiritual problems.
1-Trauma; Talking about insomnia, if past traumatic events are not accepted and overcome properly, or even tried to be dismissed as a worse possibility, the person's body will begin to react such as insomnia.
2-Physical Problems; Although I do not have extensive research on the physical causes of insomnia, I believe that hormone disorders or brain damage may cause such diseases.
3-Spiritual Problems; Enemy entities, disorders in the chakras (especially the crown and 6th chakra), irregular meditation, incorrectly performed spells, energy imbalance and many other things can cause many mental and physical problems, including insomnia. In such a situation, I recommend you get help from your Guardian Daemon, Gods of Health (Azazel, Marbas) and balance your chakra and energy field.