Manual:$wgAPIMaxResultSize/es

Detalles
The maximum size (in bytes) of an API result.

Don't set this lower than.