Hi, I tried to install twrp with the Boo command
But I didn't know that you can't do it, now I don't know what to do to me
Is it possible to install stock firmware via miflash
Yes, this is for sure a safe solution to flash a stock image trough fastboot.
You can use miflash or directly one of the shell script present in the unzipped root folder of stock firmware.