God doesn't want you to become a slave to anything—including your pain medicine. And yes, He wants to help you deal with this problem because He loves you and wants what is best for you.
Does this mean God may suddenly take away all your pain and set you free from your need for medicine? Perhaps He will, and you shouldn't hesitate to ask Him to do so. But let me be honest: This is not His usual way of working. He may instead work by directing you to the help you need to cope with this problem.
This is why I strongly urge you to talk frankly with your doctor about your concerns. He or she knows the medicine you have been taking, and whether or not you may be in danger of becoming addicted to it. If your doctor doesn't seem to take your concerns seriously, seek a second opinion. Don't delay; this is too serious an issue. Your doctor may be able to cut back on your dosage, or find other medicine to treat your pain.
Then ask God to help you and give you His peace, even when the road seems rough. If you have never done so, commit your life to Jesus Christ. Then ask Him to help you focus on Him and His love for you, and not only on your problems. The Bible says, "Thou wilt keep him in perfect peace, whose mind is stayed on thee: because he trusteth in thee" (Isaiah 26:3, KJV).