Short of testing in a lab, you can either risk it or forget it. Maybe try a less important batch and see - if it turns out the same, you know it's cactus.
Personally, I'd wave goodbye as 1 pack = ~$5 and one infected full batch = more $ wasted plus time and equipment (which can also carry bugs, so more $).
Infection may have come from anywhere and there is no guarantee that reusing yeast from anywhere is risk free. It's just worth noting that dry yeast has a negligent amount of bacteria when fresh - if reused too often, those numbers increase beyond negligent.
As for commercials - any number of things is possible. Firstly their sanitation capabilities likely exceeds yours (and mine), secondly they will often have the means to accurately quantify and qualify contamination levels, thirdly they often have a pure culture from which they can multiply usable yeast (rather than reuse the same batch) and fourthly, in the case of distilleries, they further purify*.
*I'm not super au fait with distilling: currently only a connossieur rather than practitioner but the first fermented wash does not need to be as clean as fermented beer as far as I understand. Happy to be wrong on that last.