You are hitting the limit of the number of files a process can open.
In case you are working on Linux: use "ulimit -n" in the same shell to display the number of files you are allowed to open. Please consult the documentation of your linux distribution how to increase it permanently.