nothing serious...install twrp recovery.... and install mi 8 custom rom.. then...after installing no need to boot up... just press vol up + power key... you will see so many options..simply select 'download mode'.... now simply flash stock rom via qfil.