Prohibition can also increase adverse events like overdose.
Heroin addicts usually know how much of their usual dealer's heroin, cut to a particular purity to take to get high without dying. If they take the same dose of a more pure drug, they overdose. If they take what they think is heroin, but is actually fentanyl, they overdose.
Likewise, during alcohol prohibition, liquor containing methanol was a common risk for poisoning when drinking black market alcohol. Even the cheapest grain alcohol at a college liquor store today will not contain a dangerous amount of methanol. Legal heroin would reduce this kind of risk in the same way; it would contain what it says it contains, in the concentration on the label and would not contain other harmful substances.