I just had a similar problem, really frustrated that it is so difficult to find the way back.
my rescue came from flashing my shelly 25 with a tasmota-to-mgos .bin file from GitHub. You can use the file directly to flash through serial and then just follow the instructions for installing the original firmware on top of it. just make sure you use the correct file fore your device.