Hello,
Based on the error information you provided, I suggest you open CMD as an administrator and run the following commands in sequence to see if the problem is caused by missing or damaged system files:
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow
Use the System File Checker tool to repair missing or corrupted system files - Microsoft Support
If the problem still cannot be solved, I suggest you try the following method to see if it can solve the problem:
FIX: Desktop is unavailable in Windows 10. (Solved) - WinTips.org
Best Regards
Zunhui