Issue when downloading all files on a folder (more than 200)

I am receiving an error when downloading more 200+ files from a shared folder. I have Nextcloud 16.0.5 and here is the error message:

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

  1. /var/www/html/nextcloud/lib/private/legacy/files.php line 166
    OC\Streamer->__construct(OC\AppFramework\Http\Request {}, 4185281888, 348)
  2. /var/www/html/nextcloud/apps/files/ajax/download.php line 64
    OC_Files::get("/SharedFolder/S … 9", “normal”, {head: false})
  3. /var/www/html/nextcloud/lib/private/Route/Route.php line 155
    undefinedundefinedrequire_once("/var/www/html/n … p")
  4. <>
    OC\Route\Route->OC\Route{closure}("*** sensitive parameters replaced ***")
  5. /var/www/html/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(Closure {}, {_route: “files_ajax_download”})
  6. /var/www/html/nextcloud/lib/base.php line 975
    OC\Route\Router->match("/apps/files/ajax/download.php")
  7. /var/www/html/nextcloud/index.php line 42
    OC::handleRequest()

emphasized text