nip it in the bud

Intermediário superior (B2) informal

Deal with a problem while it is still small.

"We need to nip this conflict in the bud before it affects the whole team."