I don't know why the flashing is successful, because usually the debugger will check the part number of the device when flashing.
First of all, I need to tell you that this may not 100% percentage return to normal.
You can try to read the MDM-AP register to evaluate the current state of the chip.
Please read the following document carefully, which can help you understand the cause of the chip lock