This is made worse at a lot of companies by hiring the absolutely cheapest person for the role.
If someone is toxic to a team, they shouldn't remain at that company (much less on that team).