Is bit 6 supported?
If Magisk and Z3X compatibility seem alright, consider re-flashing the stock firmware for your phone. This will overwrite any changes made during rooting and bring your phone back to its original state Drift Hunters