My guess is if you’re with somebody who dies of a drug overdose you may be liable for prosecution.
Delivery of Drug resulting in death. It’s a criminal homicide in PA, graded as murder 3 IIRC.