That error code appears to relate to the Windows install failing, you might need to check the logs on why that it, but it appears to be a compatibility issue.
I use the following command when installing our upgrades.
"{PackageShare}\Microsoft\Windows 10 v21H1\setup.exe" /auto upgrade /quiet /noreboot /DynamicUpdate disable /Compat IgnoreWarning
Basically, not rebooting the machine, so we can deploy in the background and when the user restarts then the upgrade applies.
That machine that failed the upgrade I would run the following program on it to extract the upgrade logs and see why it has failed.
SetupDiag.exe
I would also download CMTrace.exe to review the logs as it should make it easier to track down the errors and why the upgrade failed.