Bit-error-rate aware sensing-error correction interaction in spintronic MRAM