inotify exposes a /proc interface to limit kernel memory usage. If those limits are set too low, inotify cannot add all watches. The integration test verifies, that Inotify yields an error in that case.
Use RAII to handle inotify resource lifetime, i.e. initialize with actor creation and deinitialize with actor deletion.