Cannot download larger folders/files

Nextcloud version (eg, 12.0.2): 15.0.12
Operating system and version (eg, Ubuntu 17.04): Raspbian 9.11
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 7.1): 7.0.33

The issue you are facing: Error when I try to download big folder/files

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

When I select a big folder (web access) to download, like 4GB or 5GB, I always get an error, or even if I select multiple files that will generate a big file ZIP, shows the same error.

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

The output of your Nextcloud log in Admin > Logging:

[index] Error: TypeError: Argument 2 passed to OC\Streamer::__construct() must be of the type integer, float given, called in /var/www/html/my.cloud.org/lib/private/legacy/files.php on line 166 at <<closure>>

0. /var/www/html/my.cloud.org/lib/private/legacy/files.php line 166
   __construct(OC\AppFramework\Http\Request {}, 4419775591, 221)
1. /var/www/html/my.cloud.org/apps/files/ajax/download.php line 64
   get("/Photos", "Test", {head: false})
2. /var/www/html/my.cloud.org/lib/private/Route/Route.php line 155
   require_once("/var/www/html/m ... p")
3. <<closure>>
   OC\Route\{closure}("*** sensitive parameters replaced ***")
4. /var/www/html/my.cloud.org/lib/private/Route/Router.php line 297
   call_user_func(Closure {}, {_route: "files_ajax_download"})
5. /var/www/html/my.cloud.org/lib/base.php line 987
   match("/apps/files/ajax/download.php")
6. /var/www/html/my.cloud.org/index.php line 42
   handleRequest()

GET /index.php/apps/files/ajax/download.php?dir=%2FPhotos&files=Test&downloadStartSecret=l5gs3056add
from xxx.xxx.xxx.xxx by user at 2020-03-11T19:26:04+00:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxx',
  'secret' => 'xxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'my.domain.org',
  ),
  'datadirectory' => '/media/pi/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '15.0.12.1',
  'overwrite.cli.url' => 'http://my.cloud.org',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxxx',
  'dbpassword' => 'xxxxxxx',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'meysql.utf8mb4' => true,
  'mysql.utf8mb4' => true,
  'updater.secret' => 'xxxxxxxxx',
);

The output of your Apache/nginx/system log in /var/log/____:

Wed Mar 11 19:25:48.264636 2020] [mpm_prefork:notice] [pid 18360] AH00169: caught SIGTERM, shutting down
[Wed Mar 11 19:25:48.560761 2020] [ssl:warn] [pid 18531] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 11 19:25:48.759201 2020] [ssl:warn] [pid 18532] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 11 19:25:48.775661 2020] [mpm_prefork:notice] [pid 18532] AH00163: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2u configured -- resuming normal operations
[Wed Mar 11 19:25:48.775798 2020] [core:notice] [pid 18532] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 11 19:26:36.804372 2020] [core:notice] [pid 18532] AH00052: child pid 18539 exit signal Segmentation fault (11)
[Wed Mar 11 19:26:36.804917 2020] [mpm_prefork:notice] [pid 18532] AH00169: caught SIGTERM, shutting down
[Wed Mar 11 19:26:37.160402 2020] [ssl:warn] [pid 18584] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 11 19:26:37.361966 2020] [ssl:warn] [pid 18585] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 11 19:26:37.377621 2020] [mpm_prefork:notice] [pid 18585] AH00163: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2u configured -- resuming normal operations
[Wed Mar 11 19:26:37.377783 2020] [core:notice] [pid 18585] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 11 19:26:53.574372 2020] [mpm_prefork:notice] [pid 18585] AH00169: caught SIGTERM, shutting down
[Wed Mar 11 19:26:53.830147 2020] [ssl:warn] [pid 18626] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 11 19:26:54.027896 2020] [ssl:warn] [pid 18627] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 11 19:26:54.043934 2020] [mpm_prefork:notice] [pid 18627] AH00163: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2u configured -- resuming normal operations
[Wed Mar 11 19:26:54.044059 2020] [core:notice] [pid 18627] AH00094: Command line: '/usr/sbin/apache2'