Hi and Welcome,
I think it's fairly common to drink to self-medicate mental illness. Years of struggling with depression/anxiety drove me to start drinking.
Honestly, I think trying to limit yourself won't work. I suspect everyone on this board has tried that. At best you would likely spend your time obsessing about when you next drink, and at worst you would end up drinking more. Both those things happened to me.
I am glad that you are working on getting your meds changed. That's a good step to be taking.