Updated throw reason for IndexOutOfBoundsException

Previously, the reason was when the provided index is > 4, whereas it should be > 3.