stuck at "updating partition details" while installing magisk so I have a moto 4 plus running android 7 that I am having trouble with running twrp. I am following a guide to root it by unlocking the bootloader, flashing twrp (temporarily) and then flash Magisk-v16.0.zip. this is where I found this guide:

https://forum.xda-developers.com/moto-e4-plus/how-to/root-twrp-motorola-moto-e4-plus-xt1775-t3791064

I have one identical phone (I think they have identical build number) that I can do this without any problems. The other phone that I have problem with, twrp keeps getting stuck at "updating partition details." This happens when I try to do a back up so I have to skip it and try installing magisk.zip again and it got stuck again at "updating partition details." I am afraid if I try to turn it off now I may brick the phone.

I tried asking this at the forum where I got the instruction from but had no luck getting any answer. I am hoping to receive any guidance on this matter. Many thanks!
As u mention: if the "Updating partition details..." take more than 4 hours: You have a problem.

As it's noted on the XDA OP, have u flash the "no-verity-opt-encrypt.zip" file ? Apparently it's necessary to completly disabling the forced encryption on your phone.

Try to flash directly the Magisk uninstaller zip, reboot in TWRP, and try again to flash Magisk v16.