How to fix bootloop


I unlocked the bootloader using fastboot, this command; fastboot flashing unlock I had downloaded the phone’s firmware (Infinix note 7) and patched the boot.img using magisk I then flashed the boot with the magisk_patched_boot.img using fastboot;

fastboot flash boot magisk_patched.img

After flashing it, the phone has not been booting, it displays the message below:

Orange state- this device can't be trusted as it is unlocked. Reboot in 5 sec and reboot

then it goes off, and on again…. this has been repeating itself over and over

I was requesting if there is a way, I can bring back the phone and root it with no issues state- this device can’t be trusted as it is unlocked. Reboot in 5 sec and reboot

then it goes off, and on again…. this has been repeating itself over and over

Any idea on how to fix please?