You can add custom field settings to any fields using the acf/render_field_settings hook, more here https://www.advancedcustomfields.com/resources/adding-custom-settings-fields/.
You can then use the value of the setting to determine whether or not to show the field in an acf/prepare_field filter, returning false from your filter will remove the field.