Hi, I know very well how much anxiety alcohol can cause. When I stop drinking (there is a phrase highlighting a problem...), I have a lot of anxiety, insomnia, and downright paranoia.
It sounds like you probably have underlying anxiety problems, and I completely agree that you should go see your doctor. I am just some random guy on the internet. Your doctor is a professional and capable of offering real help and not just support.
Speaking about myself I can only say that alcohol makes things worse. As for insomnia, somehow I have managed to accept staying in bed not sleeping instead of freaking out about it. Eventually, I will drift off if only for a bit (it gets better the longer I stay sober). But I will still be better off the next day than if I used alcohol to try to sleep.
I hope you are well and wish you all the best!