A fix for that is to change the registry
Registry : Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
DWORD: AllowInsecureGuestAuth = 1

In Windows 11 the DWORD entry might not be there. Then just create it, it will still work.