Did what you told me and in the middle of the installation in twrp(When I chose to install the package from the updater app) the phone just turned off and now I can only enter fastboot again.
Edit: reflashed the phone using miflash and now I will unlock the bootloader again and install twrp...