Error: Connection timeout

Nextcloud version (eg, 18.0.2): 18.0.7
Operating system and version (eg, Ubuntu 20.04): Yunohost 4 (debian 10)
Apache or nginx version (eg, Apache 2.4.25): 1.14.2
PHP version (eg, 7.1): 7.3.19

The issue you are facing:
Sometimes, i can’t upload any file without having a “connection timeout”.

Is this the first time you’ve seen this error? (Y/N):
No
Steps to replicate it:

  1. Open the desktop app
  2. Try to upload a file
  3. Wait a couple of minutes

The output of your Nextcloud log in Admin > Logging:

Nothing relevant, only failed login attempts

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

/home/yunohost.app/nextcloud/data/$USER/files/

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

Nothing relevant