Viewing some folders in a browser causes Nextcloud to hang

Nextcloud version: 25.0.3
Operating system and version: Ubuntu 20.04
PHP version: 8.1.2

Is this the first time you’ve seen this error? N

Steps to replicate it: Browse to one of several specific folders from another folder.

The issue you are facing: The webpage hangs for approximately two minutes.

The output of your Nextcloud log in Admin > Logging: Upon checking, apparently this page hangs too. Edit: I found here (Nextcloud logs spinning wheel | Cloudron Forum) that the log may be here in the Cloudron log, which I am running Nextcloud on. But it’s too large and mixed with private data to post here.

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

<?php
$CONFIG = array (
  'passwordsalt' => '[REMOVED]',
  'secret' => '[REMOVED]',
  'trusted_domains' => 
  array (
    0 => '[REMOVED]',
  ),
  'datadirectory' => '/app/data',
  'dbtype' => 'pgsql',
  'version' => '25.0.3.2',
  'overwrite.cli.url' => '[REMOVED]',
  'dbname' => '[REMOVED]',
  'dbhost' => 'postgresql',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '[REMOVED]',
  'dbpassword' => '[REMOVED]',
  'installed' => true,
  'default_phone_region' => 'US',
  'trusted_proxies' => 
  array (
    0 => '[REMOVED]',
  ),
  'forcessl' => '1',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail',
  'mail_smtpport' => '2525',
  'mail_smtpname' => '[REMOVED]',
  'mail_smtppassword' => '[REMOVED]',
  'mail_from_address' => 'nextcloud.app',
  'mail_domain' => '[REMOVED]',
  'overwritehost' => '[REMOVED]',
  'overwriteprotocol' => 'https',
  'updatechecker' => false,
  'updater.release.channel' => 'cloudron',
  'logfile' => '/dev/stderr',
  'loglevel' => '3',
  'debug' => false,
  'redis' => 
  array (
    'host' => 'redis-[REMOVED]',
    'port' => '6379',
    'password' => '[REMOVED]',
  ),
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'integrity.check.disabled' => true,
  'htaccess.RewriteBase' => '/',
  'simpleSignUpLink.shown' => false,
  'instanceid' => 'ocxeipv7byko',
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'has_rebuilt_cache' => true,
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => '',
  'app_install_overwrite' => 
  array (
    0 => 'documentserver_community',
  ),
  'defaultapp' => 'files',
);

The output of your Apache/nginx/system log in /var/log/____:
Are you asking for error.log or access.log in /var/log/nginx/? Here are the last two lines in error.log:

2023/02/23 21:28:19 [crit] 191183#191183: *25635 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 154.89.5.83, server: 0.0.0.0:443
2023/02/23 23:53:53 [crit] 191183#191183: *29835 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 188.166.2.136, server: 0.0.0.0:443

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
I am running this via Cloudron. I see no file in /var/www/, and only the folder html/.