System Errors

First try to perform an offline update with usb stick.

https://support.xbox.com/en-US/help/hardware-network/console/offline-system-update

If that doesn't work, you need to replace the hdd, which requires running script on your computer.

https://gbatemp.net/threads/xbox-one-internal-hard-drive-upgrade-or-repair-build-any-size-drive-that-works-on-any-console.496212/