i've never removed the SIM and if i flash a corrupted phone, i wipe the phone memory and the memory card, too. There is a file for the memory card ... MC_F_nocard.mcard.cardverref.xml that i flash, as well.
Basically, format memory card, three-finger reset, turn phone off, start dead phone USB refurbish, get the popup dialogue, insert the USB cable and click OK.