According to the documentation
AWS_S3_MAX_MEMORY_SIZE(optional; default is 0 do not roll over) The maximum amount of memory (in bytes) a file can take up before