Welcome to SF Danny. Sorry that you're going through this. It's tough to maintain boundaries with any form of opioid drug, please don't blame yourself for that.
If you've been taking these for pain, there might be other treatments without the risk of addiction or toxicity, as well as a way to overcome addiction. I could say more about this if you're interested.
I hope things can get better soon.