Sharing file with the user - error message

Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.4
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.14
PHP version (eg, 7.1): 7.4

The issue you are facing:
In browser (yandex) getting the error message “Error creating the share” when I’m sharing a file with another user. Despite the message the file becomes shared and we can see it after refreshing page.
Similiar situation in android app.
NC and nginx logs aren’t show any corresponding messages.

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

config.php
<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => '192.168.1.100',
    1 => '*.ru',
  ),
  'datadirectory' => '/mnt/data/nxc-data/nxc-lv/',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  'overwrite.cli.url' => 'https://*.ru',
  'dbname' => 'nxc-lv',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nxc-lv',
  'dbpassword' => '',
  'installed' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
#  'memcache.distributed' => '\OC\Memcache\Redis',
  'redis' => array(
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'default_language' => 'ru',
  'default_locale' => 'ru_RU',
  'allow_user_to_change_display_name' => true,
  'auth.bruteforce.protection.enabled' => true,
  'logtimezone' => 'Europe/Moscow',
  'log_type' => 'owncloud',
  'logfile' => '/var/log/nextc-nxc-lv.log',
  'loglevel' => '2',
  'log_rotate_size' => '104857600',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\Movie',
    2 => 'OC\\Preview\\MKV',
    3 => 'OC\\Preview\\MP4',
    4 => 'OC\\Preview\\AVI',
    5 => 'OC\\Preview\\PNG',
    6 => 'OC\\Preview\\JPEG',
    7 => 'OC\\Preview\\GIF',
    8 => 'OC\\Preview\\HEIC',
    9 => 'OC\\Preview\\BMP',
    10 => 'OC\\Preview\\XBitmap',
    11 => 'OC\\Preview\\MP3',
    12 => 'OC\\Preview\\TXT',
    13 => 'OC\\Preview\\MarkDown',
  ),
);

Found relative topic Error creating the share Nextcloud 18.0.3
Solved error message appearing but the sharing/unsharing icon doesn’t update. Only updating after page refresh.