GCS too many open files

I’m not sure if this is the same as my case, but I posted a simple script that reproduces the issue: