On my 3t
well if you need viper4android only, just use viper4android module in Magisk.
for arise if you set
install.magiskcompatibility=true
it does something in boot image and device factory restore after boot
so dont set it as true
and if you dont want to reset , when twrp opens after...