Throw error if sizes of referenced arrays are near INT_MAX.
Throw error if sizes of referenced arrays are near INT_MAX.

PiperOrigin-RevId: 484218386
Change-Id: I07dff633b4911bf296ad8993550509ed7b3dfe53

deepmind/mujoco,deepmind/mujoco,deepmind/mujoco,deepmind/mujoco,deepmind/mujoco