No, the solution is obvious, make pain meds that kill the pain but don’t get a person high.
I don’t know how to do that and apparently no one else does either but it’s the obvious solution.
Heroin addiction is another matter entirely. That’s a street drug.
What needs to be done is education and starting in grade school.