Technology is probably an easier solution than changing an entire society.
We don't really need to change an entire society, all we need to do is legalise and regulate recreational drugs. That immediately solved the problem of missold drugs. The societal stigma which prevents people seeking help for addiction might not vanish overnight but it's impossible to do anything about it while drugs like opioids are illegal.