Preventing Shared Folder from being sync to windows client

Nextcloud version (eg, 20.0.5): 21.0.2
Operating system and version (eg, Ubuntu 20.04): Truenas 12.0
Apache or nginx version (eg, Apache 2.4.25): apache
PHP version (eg, 7.4): php7.4

The issue you are facing:

Shared folder got synced to the user’s windows sync client

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

Steps to replicate it:

  1. Setup windows client sync to sync files from user’s (User A) D: Drive to nextcloud
  2. The Second User (User B) shares a file / folder to User A
  3. The folder got synced to User A D: Drive

Is there any way to prevent files / folders that is shared from another user from being synced to the user’s windows sync client (D: Drive in my case)