Go to Control Panel -> Task Scheduler. Create a New Task -> Triggered Task -> User-defined script.
In General Settings tab: give it a name (e.g. “Syncthing Sysctl Inotify Fix”) and Event = Boot-up.
In the Task Settings tab: enter this in the Run Command box:
sh -c '(sleep 90 && echo 204800 > /proc/sys/fs/inotify/max_user_watches)&'
The sleep is to delay the setting to (hopefully) skip past any initialization that Synology does at boot time.
Click OK to close the task dialog, then enable the task and hit the Save button.
Reference
https://forum.syncthing.net/t/setting-inotify-limit-permanently-on-synology-diskstation/12221/3