I wonder if the error "VM Exception while processing transaction: revert", "code": -32000" thrown by the Remix IDE indicates the 0x32 Solidity panic exception happening when you access array out-of-bounds?
The error codes are documented at EIP 1474 - Remote procedure call specification.
In this case
|-32000||Invalid input||Missing or invalid parameters||non-standard|
It is a generic error code returned by RPC provider when the call has failed.