Nextcloud 22 - win10 desktop client - long file names rename operation delete the file

Nextcloud version: 22.2.5
Operating system and version: RHEL 8.6
Apache or nginx version: Apache 2.4
PHP version: 7.4.30
Client OS Version: Windows 10
Nextcloud Desktop Client version:3.6.0
Virtual File in use: Y

The issue you are facing:
User renames a file, the desktop clients pops up an error complaining about filename too long, the file gets deletes.
the files are in a groupfolder
in the user activity the operation gets logged as “you deleted the file xyz”
the file is not available in the trashbin
the files is deleted on the server as well

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

The output of your Nextcloud log in Admin > Logging:
No relevant info about the occurrence could be found

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

  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' => 
  array (
    0 => 'REDACTED',
    1 => 'REDACTED',
  ),
  'datadirectory' => '/nextcloud-data-encrypted/',
  'dbtype' => 'mysql',
  'version' => '22.2.5.1',
  'overwrite.cli.url' => 'https://nextcloud.REDACTED',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'app_install_overwrite' => 
  array (
    0 => 'openotp_auth',
  ),
  'maintenance' => false,
  'loglevel' => 0,
  'default_phone_region' => 'IT',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'mail_from_address' => 'nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'REDACTED',
  'mail_smtphost' => 'REDACTED',
  'mail_smtpport' => '2525',
  'trashbin_retention_obligation' => '30, 120',
  'skeletondirectory' => '',
  'remember_login_cookie_lifetime' => 0,
  'session_lifetime' => 14400,
  'session_keepalive' => false,
  'auto_logout' => true,
  'token_auth_enforced' => true,
  'token_auth_activity_update' => 10,
  'hide_login_form' => false,
  'theme' => '',

I’d first check in the bug tracker if that issue was already fixed. Latest version of NC 22 was 22.2.10. Also note that the whole version of NC22 is out of support (Maintenance and Release Schedule · nextcloud/server Wiki · GitHub), even if a bug is identified, the bug is only fixed when it is a bug in newer versions as well.

Somehow related: