If you are very unlucky you have used about 100% of all inodes and can’t create the scipt.
You can check this with df -ih
.
Then this bash command may help you:
sudo find . -xdev -type f | cut -d "https://stackoverflow.com/" -f 2 | sort | uniq -c | sort -n
And yes, this will take time, but you can locate the directory with the most files.