Adding an error when the size of an array is greater than 255