Perhaps you did it because you're an alcoholic.
You say you do not want to return to the misery of drinking but it sounds to me like you are already agonizing over the two beers you drank.
For alcoholics there is no middle ground.Either we are going to drink or we are not.
Before I could start recovering I had to let go of the persistent reservation I had that maybe one day I could learn to "control" my drinking