This is crucial. Go to Wipe -> Format Data -> type "yes". This removes encryption from the stock ROM.
adb sideload name-of-rom.zip Do not reboot immediately. The script will automatically switch slots. Now sideload your GApps and Magisk. nokia 7.2 custom rom
On your PC: