Godot says my access of index 1 is invalid on a six column packed string array

Godot Version

4.3

Question

My packed string array ‘totalarray’ has six columns and six lines on it and it says the index ‘1’ is specifically the one failing.

I don’t know if my ‘i’ value is the one wrong or what but when input a fixed number like 6 it work just fine.

I tried printing the ‘totalarray’ to see if it was missing columns or rows before it would use the code but nothing changed or was off.

Invalid access of index ‘1’ on a base object of type: ‘PackedStringArray’.

	for i in totalarray.size() - 1:
		valdumb = totalarray[i+1][0]
		valvoice = totalarray[i+1][1]

Print the array.

Is this not bound to fail no matter what the size of the array is?
This is a two element array of arrays
[[1,2][3,4]]
When you loop through it
for i in array.size() -1 # 0 to 1
the first time i = 0:

print(array[i+1][0])
3

the second time i = 1:

print(array[i+1][0])
out of bounds index 2