This is Dr. David
I'm glad you stopped drinking alcohol
drinking lots of alcohol can cause inflammation of your stomach and gastritis and even stomach ulcers.
these can cause pain below your left rib where your stomach is and cause severe pain.
avoiding alcohol is the first step
then there are stomach acid reducing medications like maalox, mylanta, zantac, prilosec which can help as well.
I think you were having gastritis cause your pain.
I hope you have stopped drinking alcohol all together now.