Sharing Link o share with user disappear

Version : 22.2.5
Ubuntu : 20.04.3
Apache : 2.4.41
PHP : 7.4.3

The issue you are facing:
When i try to create a public link or sharing with a user the sharing disappear after some time.

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

Steps to replicate it:

  1. Share a folder
  2. Wait some time
  3. Every type of share disappear

My nextcloud is on a ubuntu machine but the repository (folder) is a windows server 2019
Then i mapped in SMB\CIFS with the “external storage” function a group of folder.

When the users share small file o folder within few file everything works fine , when the folder became bigger and bigger and they create subfolder the share link disappear after some hour and all user linked disappear too.