My grid only works when I enable all the spatial UI in it, if I try to enable each grid slot individually they don't work, why?

This entire scripts boils down to:

Do count what you’re spawning vs the number you’re expecting to have - do they match? Debug it, give them IDs, trace, see what you’re hitting.