Error loading file picker template: {error} when trying copy/move

Nextcloud version (eg, 20.0.5): 23.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.18.0
PHP version (eg, 7.4): 8.0.18
This is clean test installation, install just today. I have facing with this error on production server(ubuntu 20.04, php 7.4)

The issue you are facing:

When i trying to copy/move files this error show up
Also error comes in Onlyoffice, then trying Save copy as…

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

Steps to replicate it:

  1. Select some file or folder
  2. Click Actions
  3. Click Move or copy

The output of your Nextcloud log in Admin > Logging:

Nothing here about this error

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

$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => '',
  'datadirectory' => '/cloud_data',
  'dbtype' => 'pgsql',
  'version' => '',
  'overwrite.cli.url' => 'https://',
  'dbname' => 'nextcloud',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'installed' => true,
  'default_phone_region' => 'RU',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',

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

Nothing here about this error

A post was split to a new topic: Error and support request

I have this problem, too.
In the browser network inspector I can see, that request to /core/templates/filepicker.html is 302 redirected to /apps/files/ which looks like it was not found.
In the console is logged error TypeError: e is undefined in file octemplate.js:114:11

I have fixed it by updating nginx config on this line

    location ~ ^\/.+[^\/]\.(?:css|js|woff2?|svg|gif|map|html)$ { ...

was missing html