How to Resolve an Error When Moving Specified Tiles in a 2D Array Vertically?

I am working with tiles arranged in a 2D array. I want to move several specified tiles up and down by specifying their row and column numbers. However, when I tried to perform this operation, I encountered an error.

I have a question about this error. Specifically, I would like to know what caused this error to occur and how I can resolve it.
verse error_0