That error comes from a Windows security change for shared printers. The clean fixes, best first:
Connect the printer to the network directly (Wi-Fi or Ethernet) if it supports it, and add it on each laptop by IP. No sharing needed.
If it’s USB-only, make sure both the sharing PC and the laptops have all current Windows updates installed. Mismatched update levels cause most of these errors.
On the laptops, add the printer as a local printer using a TCP/IP port to the sharing PC, instead of “Connect” through the network browser.
Avoid registry tweaks that turn the security fix off. They work, but they reopen the hole Microsoft patched.