CVE-2021-1678 mitigation is one of the reasons why you could be seeing Error Code 0x0000011B, this is not a permanent solution but while you are waiting for Windows to release a fix for this problem, you can try this.
Open Registry Editor from the Start Menu. Go to the following location.
Right-click on Print and select New > DWORD(32-bit) value. Name the newly created value “RpcAuthnLevelPrivacyEnabled”, and set the Value data to 0, and click Ok.
run services.msc and restart print spooler
Ensure that the registry is installed in both windows 11 and 10 machine that you are doing sharing together