OSError: [Errno 24] inotify instance limit reached

Whenever I run any of my streamlit app I get this error

OSError: [Errno 24] inotify instance limit reached

Earlier everything was working fine. But, now nothing works.

I tried to fix it using this- https://stackoverflow.com/questions/47075661/error-user-limit-of-inotify-watches-reached-extreact-build/47094674#47094674

But it didn’t worked. Any solution?