Protections against spurious PFclusters using residual minimization