One solution is to couple this quantitative criteria with independent committees that assess people beyond the metrics, but that requires a lot of human effort and not scalable.
Assessing people in ways that don’t scale seem to be the way to avoid this gaming trap in academia.