After running the script to perform a full erase and then turning off the power, it bricks again. However, if you upload something like blinky after the full erase, it won’t brick even after turning off the power.
My XIAO suddenly bricks while in use, and since I don’t understand the root cause of the bricking, I don’t know if this method provides a complete fix or if it’s just a temporary solution.