If the rubbish folder is truly unrelated to Megasync this won’t help, but if you point Megasync to the folder a level above the vault, the rubish folder won’t show up inside the vault.
For example
- Obsidian (Synced folder)
- Vault 1
- Vault 2
- .rubbish (Automatically created)