If the flashing process fails, then double-check the compatibility of the Stock ROM. So, this ensure you have the correct files and follow the steps precisely.