You’re describing and absolute failure of the ABS system.
In that scenario, braking hard enough to engage ABS at all is the failure. It is not a failure on ABS's part unless you consider all ABS faulty. Some loss of yaw control is inevitable whenever ABS is engaged. ABS only gives better yaw control than completely locking the wheels.