Hello,
First, let us confirm the current problem: Did your shared printer work properly before installing this Windows security update? If the error started occurring after the Windows security update, you can consider uninstalling the problematic update: Go to Settings>Update & Security> Windows Update>View update history>Uninstall updates.
Also, check that the printer drivers are up to date on both the computer sharing the printer and the computer trying to connect to the shared printer. And check that both the computer sharing the printer and the computer trying to connect are on the same network.
You can also try running the Windows built-in printer troubleshooter: Go to Settings>Update & Security>Troubleshoot>Additional troubleshooters>Select the printer, and then run the troubleshooter.
If you have any confusion about this issue in the future, please let us know.
I hope this helps.
Best regards