I can add information that using a share on windows 10 as remote causes this error.
But using samba on linux with this config is ok:
[global]
workgroup = BERG
server string = ember
security = user
guest ok = no
map to guest = Bad Password
log file = /var/log/samba/%m.log
max log size = 50
printcap name = /dev/null
load printers = no
min protocol = SMB2
ntlm auth = yes
[localNetwork]
comment = Local Network Storage
path = /mnt/storage/localNetwork
browsable = yes
read only = no
guest ok = no
valid users = local,john-arvid
force group = samba
force user = local