To you and everyone else having this problem, I think it is a bug caused by Viper4Android. For me my phone booted fine after I had uninstalled it.
Search google for "Magisk Manager for Recovery Zip" and flash this zip in your recovery. Then go to the terminal and type "mm". Then select the...