Printer name invalid issue

The share name is the printer name right?

No it’s the share name when you setup sharing for it. I don’t know how your print server is working.