bro how to patch the original boot.img with magisk?I managed to solve the above problem. I have used the wrong boot img file. Check your phone firmware version and get the corresponding boot.img from the ota zip file. Then, patch that boot. img with magisk manager that you have installed on your phone.
After that, fastboot boot this newly patched boot.img. Then, you are good to go.