I believe I’ve found a fix! It appears that tweaking a few settings in the Samba configuration has resolved the issue. I’ll be monitoring the situation, and if it happens again, I’ll let you know. For those dealing with the same Samba share problem, here are the settings I added to smb.conf. I have also highlighted the most important option to be turned on
[global]
macOSx
min protocol = SMB2
vfs objects = catia fruit streams_xattr
fruit:ntfs_aces = yes
fruit:metadata = stream
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:apple = yes
fruit:model = MacSamba
fruit:delete_empty_adfiles = yes
fruit:zero_file_id = yes
server min protocol = SMB2
WINS Support
wins support = yes
dns proxy = yes