Connect the tablet to your PC and run adb reboot bootloader .
: Unlocking the bootloader will factory reset your device.
: Go to Settings > System > About tablet and tap Build number 7 times.
Select your boot.img . Magisk will generate a new file, usually named magisk_patched_[random_strings].img .