Install Fastboot drivers properly if you see errors while flashing.
"Invalid sparse file format at header" is not an error, just wait you will be fine.
If getting any unusual bugs, then flash your region firmware.
NEVER UPDATE A PORT ROM from updater/settings. Turn off auto update from settings.
For safetyNet, flash #safetynet in magisk and hide magisk.
To root, extract boot.img and patch boot.img with magisk app (or use this patched_boot.img) and then flash it in fastboot using cmd : fastboot flash boot boot_patched.img