Equivalence between algorithmic instability and transition to replica symmetry breaking in perceptron learning systems