Hello Friend, thanks for reaching out here for help. As you have already tried medicine and treatment and still feeling no improvement, I am giving you a different perspective of your problem through Ayurveda. See if you are able to connect and decide on next steps. Insomnia or any sleep related disorders are bodily symptoms create by imbalanced air energy called Vata in Ayurveda terms. . They in turn manifest at mind level and create anxiety, fear, running thoughts, unnecessary dreams etc.
Other hand, If this air energy is in balanced condition, it will enable you to be an energetic, enthusiastic, creative person. So, the solution here is to bring back the balance of air energy in body. The techniques are simple home remedies, few dietary, regular oil massages etc. But it can be suggest based on detailed evaluation of body constitution. Hope it helps to understand your problem better.
Next Steps
I am also an ayurveda wellness counselor and can guide you on the further assessment. If interested consult me online.