Thank you for posting in Microsoft Q&A forum.
Based on the error message shown in the images, it seems that the Post-Deployment Configuration task is failing after the installation of WSUS on Windows Server 2022.
The error message suggests that the issue is related to the service account used to run the Windows Server Essentials Management Service. Specifically, the service account does not have the required user right "Log on as a service."
To resolve this issue, you need to grant the service account the "Log on as a service" user right. You can follow the steps outlined in the "Resolution" section of the following Microsoft document to grant the required user right to the service account: The Post-Deployment Configuration task may fail after you install the Windows Server Essentials Experience role.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".