> This is probably because on most distributions the Linux kernel is configured to overcommit memory by default.
I'd say this is because one needs an excess of 16 GiB of RAM just for that one process to reach the problematic index value. If that much is not available, the failure mode is different.