This error occurs if you are specifying incorrect memory limit.
The maximum amount of memory a script is allowed to allocate must be larger then the maximum file size.