Download failure when downloading large files

When I want to download large files from my platform, with which they exceed 1GB is enough, the download, randomly, is cut without giving any failure.

<?php

$CONFIG = array (
‘instanceid’ => ‘x’,
‘passwordsalt’ => ‘x’,
‘secret’ => ‘x’,
‘trusted_domains’ =>
array (
0 => ‘x’,
1 => ‘x’,
),
‘datadirectory’ => ‘/srv/www/htdocs/nextcloud/data’,
‘overwrite.cli.url’ => ‘http://x/nextcloud’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘13.0.7.2’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘x’,
‘dbpassword’ => ‘x’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘ldapIgnoreNamingRules’ => false,
‘ldapProviderFactory’ => ‘\OCA\User_LDAP\LDAPProviderFactory’,
‘updater.release.channel’ => ‘stable’,
‘maintenance’ => false,
‘loglevel’ => 2,
‘log_type’ => ‘file’,
‘logfile’ => ‘/var/log/apache2/nexcloud.log’,
‘theme’ => ‘’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpauth’ => 1,
‘mail_smtphost’ => ‘x’,
‘mail_smtpport’ => ‘x’,
‘mail_from_address’ => ‘x’,
‘mail_domain’ => ‘x’,
‘mail_smtpname’ => ‘x’,
‘mail_smtppassword’ => ‘x’,
‘filelocking.enabled’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
‘timeout’ => 0.0,
),
);

The “x” are private information of the configuration

Any idea why the downloads can fail randomly?