Scripts can't recognize a list

I’m trying to run rhis gh file, but some codes give me this out of range error, really need help with this,

here is the file
ErronEstrado_FSIO.gh (636.8 KB)