Problem building status-react: Too many open files

Not sure if this is the right forum, but I’m trying to build react-status on my local macOS Monterey environment. When I run make run-clojure or make run-metro I eventually get an error like:
error: opening directory '/nix/store/jp1qbzzwacb5i1wb59jg1x634842bach-regex-20.1.0.pom': Too many open files

Any idea how to get around this?, Thanks

Yes, this can happen, in our CI we raise the file limits permanenty using Launchd jobs:

You can check your current limit with ulimit -n. It is also possible to adjust the defaults for the system in /etc/sysctl.conf. More reading: Maximum limits (in macOS file descriptors) – Index