Several boxes in relay mode and samba instability

with several boxes in relay mode I found that:

1 - in dlna I have no problem the boxes are always available

2 - in samba the explorer windows they are there then disappear and reappear more or less randomly

I finally deleted the MAX protocol SMB2 line in the smb.conf.template file and the problem seems solved

is this really the answer?