Should really just start selling "Illegal Drugs" in standardized doses like alcohol and pharmaceuticals so people don't get surprised. Drug users may be rational but individual testing puts a huge burden on the consumer that many aren't going to want to pay for in the name of preventing a tail risk.
Training people how to use drugs in order to be allowed to purchase them and offering mental health services would be far less expensive to society.