It might be because encryption is required. You could try adjusting it using the following commands.
Alternatively, you could try lowering the SMB version to NT1 and see if that helps.
Of course, for security reasons, we don’t recommend doing this. If you do, please make sure it’s only used within a local LAN, or continue using third-party software that supports newer SMB versions.