Unable to save file: Operation not supported on socket


I am running Atom 1.26.1 x64 on Ubuntu Linux 16.04.
Recently I started getting errors when I edit files on an SMB share on my Raspberry Pi 3. Saving a .yaml file either gives me the error message shown in the image or empties the file completely on ‘Ctrl-s’ or ‘Save’. A second save command after an error message or a Ctrl-Z to restore + a second save command saves the file as expected.

The problem only occurs on my laptop, while I have no issues with a similar setup on my desktop.

Does anybody know w

hy am I getting this error?