Per Wikipedia:

there is a trade-off between efficiency or effectiveness on one hand, and thoroughness … on the other

Said another way:

Maximizing efficiency without a constraint wastes resources via opportunity cost

The term was coined by Erik Hollnagel in a 2009 book, The ETTO principle: efficiency-thoroughness trade-off: why things that go right sometimes go wrong.