I believe the correct term is "Goodhart's Law": https://en.wikipedia.org/wiki/Goodhart%27s_law