First off, I'm genuinely happy you made it out okay, that's terrifying. This is exactly why I always recommend testing your substances. It's not a 100% guarantee but it can significantly reduce this sort of risk. Please, everyone, invest in a test kit, it could save your life.