((((((((((((((paddy))))))))))))))
A friend of mine in AA always tells me that pain - physical, emotional, or spiritual - would eventually cause him to relapse, so that he is always careful to notice and manage any pain he is in. I'm SO glad you decided to manage your pain.
I also have problems with (multiple) addictions, and I have been told that if I need to take something like an opiate painkiller, I could give the bottle to someone I trust and ask them to give me a pill on the prescribed dosing schedule.
Do they know what is causing the pain? I hope you feel better soon!

