From the screenshot, I can see you're getting this error code while connecting to the printer.
Try these steps and see if it helps:
1. Open Registry Editor.
2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider.
3. Right click on Client Side Rendering Print Provider and select Export. 4. After exporting the key to registry file, right click on Client Side Rendering Print Provider and select Delete. Click Yes in confirmation prompt. 5. Reboot your system.
After this, make sure Print Spooler service is running and then try connecting to printer.