You CAN drink it, but I don't see why you'd want to.
As someone else said, due to a combination of factors, nothing that can really hurt humans can live in beer.
Most of the time, when you have unintentional infections, they won't taste good.
VERY occasionally you have ones that do. Go to town on those.
The rest you really should dump out. IN this case, taste it before making a decision, but either way, I would dump that fermenting bucket. Get a new one. The bugs that cause infections can live in the tiny imperfections in the surface, and are basically impossible to get rid of.
Also any plastic that touches it. Likewise, that can harbor bugs.