I have the same problem when editing files (e.g. package.json) with the Plesk file manager. When I do not open the file manager or any file with it and modifying the files via the command line, everything works fine.
I think it is some kind of file permission problem, but I do not know yet what...