Users often mix heroin with benzos and/or alcohol which increases the level of risk enormously. The vast majority of overdoses are caused by mixing CNS depressants in with heroin, not by heroin use alone.
If you can't get a steady supply then withdrawals are vicious and can cause a host of other problems (crime in order to get money for more heroin being a commonly cited one).
One of the ways that heroin itself can cause overdose deaths is relapses - users may take a dose that they were previously tolerant to. I believe this is still far less of a danger than combining with other substances.
Many classic drugs (as opposed to research chemicals which introduce small molecular changes to circumvent banns on another substance) are pretty safe or at least have a well known safety profile.
Here's a reddit famous account from someone claiming to be an opiate addict that some find enlightening/haunting: https://www.reddit.com/r/IAmA/comments/wnj2d/iama_heroin_add...