The MSDN documentation says that the upper limit of the _read() argument is INT_MAX (about 2GB), but the size gotten by fstat() exceeds this limit, so I think we encountered server crash by an exception error.
Until PostgreSQL 13, fstat() failed and returned ERROR when a file was larger than 2GB, but as a result of improvements to fstat() in PostgreSQL 14, it appears that _read() has exceeded its limit and now causes a crash.
The value of MaxAllocHugeSize is being oversized when _WIN64 is defined [1]. Shouldn't the limit for a slurp be MaxAllocSize?