The best solution I found so far is to increase the fs.inotify.max_user_instances
in /etc/sysctl.conf
by running this command:
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Source: https://github.com/dotnet/aspnetcore/issues/8449#issuecomment-512275929