Do not feel any shame for your addiction. Nobody chooses addiction, it creeps up on you without realising. You now know what's happening to you and you want to do something about it, well done! You will figure out how to fix it, you are clearly a clever person, you will find a way that's right for you, but it may take a few goes and there will be times when believe you will never stop your addiction. But you will.
Try and find someone who you can talk to about this, ask them to hold back on their instinct to provide advice, ask them just to be there to talk to. Then tell them every week or two how it's going.
Good luck