I don’t know how far owncloud and nextcloud have diverged, but in the nextcloud client you can add filters to ignore files by clicking the three dots on the folder in settings.
You can also free up local space by using virtual folders, but it only works properly on windows.
Half of our military bases are occupied by the Americans and we need your permission to do anything.