Your case sounds pretty extreme, like a combination of multiple toxic factors and I still don't think it is due to AI. Fred still could have pushed bad code without the help of AI and the situation would be the same. In this case the problem is Fred, not AI. It's the human negligence of Fred that caused the issue. Even if you ban using AI in your company, still Fred would behave the same and find a different way to be toxic.