Finally I got it working, the steps as follows:
1. Installed the rom, wiped dalvik and cache and deleted the package_cache folder
2. Rebooted but the phone rebooted to recovery
3. Installed the dm_verity and rebooted but the phone stuck on MIUI logo
4. Rebooted to recovery and installed magisk r...