Hi. From what you have mentioned, it seems that your insomnia is directly related to anxiety. So, in order to get rid of insomnia, you will have to get your anxiety treated. Please consult a psychiatrist and get yourself evaluated completely. Accordingly treatment can be initiated in form of medications and psychotherapy.
Next Steps
Seek a psychiatric consultation.