I've taken drugs my whole adult live and never witnessed a faulty product except badly grown weed.
There are rules for safe drug use. There are test kits (today, back then they were expensive) and most countries gladly have drug checking places as well.
The issue aren't the drugs but the culture and knowledge around it.