I had this problem a time in the recent past and no other solution than format data...
since that, I never use the updater and I do this steps to update:
* download the ROM from official site
* restart into recovery
* flash magisk uninstaller
* flash ROM, OpenGapps (Nano in my case), Magisk (>=20.0)
* reboot normal
Thank you very much. I will look into it and avoid using the inbuild updater as well.