Windows 10 will automatically update security for the operating system. Unfortunately, some of those updates can cause issues, particularly with sharing printers over a network.
If you use a printer that is shared from another computer on your network and that printer simply stopped working for attached computers, the Windows security update, (KB5005565), may be the culprit.
Uninstall the update by clicking on Start, then Settings, (gear icon), Update and Security, View Update History and Uninstall Updates, (in blue at the top). Look for the above update under the heading Microsoft Windows.
Highlight and click Uninstall at the top of the Headings. The uninstallation will take a few minutes and a restart may be required. Look for the Tip on how to Meter your updates to help prevent this issue.