Index out of range for no reason?

Hello, I have a script that randomly chooses an object from 1 to 3 and places the chosen object down. This worked completely fine but even though I didn’t seem to change any code it suddenly delivers 10-50 of these errors each time I press play. The even stranger thing is that the errors don’t seem to do anything, do I even need to bother with them?
Code:

      public GameObject[] objects;
        void Start()
        {
            int rand = Random.Range(0, objects.Length);
            Instantiate(objects[rand], transform.position,Quaternion.identity);
        }

Thanks for taking the time to read my post, any help will be appreciated!

@floppyturtle32 Hmm i don’t really know, but make sure you got all the objects in your array placed/instantiated