@monersss If you get access to the REPL, you can simply hit Ctrl-C. Otherwise you can use safeboot:
Connect G28 with the 3v3 pni, and then push reset. When the LED turns orange, then disconnect the wire. The device will then not execute boot.py and main.py.
The documentation talks about falling back to a series of previous versions, but that is nonsense on a Lopy