Back in the earlier days of web hosting we'd run into this with Apache. In fact, I have a note from 2014 (much later than the early days actually):
ulimit -n 10000
to set permanently:
/etc/security/limits.conf
\* - nofile 10000