Firstly, make sure Windows is fully updated. Go to Settings > Update & Security > Windows Update and check for updates.
Clear Printer Spooler:
net stop spooler
del %systemroot%\System32\spool\printers* /Q /F /S
net start spooler
Fix printer connection and printing problems in Windows
Completely remove old or corrupt printer drivers from the system. Sometimes remnants of old drivers can cause conflicts even if they're not actively in use. Then reinstall the latest driver.