This might be the case as I am using Arduino IDE Version 2.0.2 which is not recognizing my board sometimes and I have to tell the IDE manually which board and port I am targeting.
Although I am pretty sure that my code was successfully uploaded at the moment when the board went off. Even if I am wrong and I have selected the wrong board, the IDE won’t let me upload the code anyway (as I noticed some times), right? But let’s assume this is the case and I did choose the wrong board and managed to upload the code, now what? Is there anything I can do to rescue my Xiaos?