Check out the Sinclair Method, which is basically taking Naltrexone before you drink. Also check out the book "The Cure for Alcoholism: The Medically Proven Way to Eliminate Alcohol Addiction" by Eskapa. I used this method, along with keeping a log of drinks consumed, to eventually quite drinking over the course of a year. I went from having anywhere from 3-8 drinks a night, every night, to eventually stopping comple…
I had to stop taking naltrexone after ~6 months because it was giving me insomnia / I started noticing an irregular heartbeat during the night (don't think this was naltrexone related though). But the effects persisted for a long time. It was like a complete reset with respect to my response to alcohol.
Unfortunately after a year or two of drinking again without it, I was back to binge drinking again. Very similar pattern to OP.
In the end I made the decision that it's not worth the hassle - had my last few parties with family and friends over Xmas & new year and then quit altogether from Jan 1st this year. Difficult at first but non-alcoholic beers have been amazing to trick my brain into thinking I'm having a drink with everyone else when out and about and, honestly, recently I haven't been missing it at all.
Good luck OP!