Fermi-level pinning of Yu-Shiba-Rusinov states in a superconductor with weakly broken spin-rotational invariance