Global aggregation with filters and term aggregation with latest elastic search client 8.13 and above

Elasticsearch.Net version - 8.0:

Elasticsearch version - 8.13: - upgraded from version 8.11 to 8.13

.NET runtime version - 8.0:

Operating system version - win11:

Description of the problem including expected versus actual behavior:
Have upgraded elastic version from 8.11 to 8.13, post upgrading we are facing issues with aggregation mainly. below is the code snippet of aggregation. Can somebody help how to achieve the same in latest version because earlier sub aggregation were supported not in the latest version.

Below is the code snippet:

public GlobalAggregation GetAggregations(SearchDefinition searchDef, Query? multiFieldTermQuery, string? searchFieldConfigName, string globalAggregationName)
  {
      //// create a base query.
      Query qry;
      var aggList = new AggregationDictionary();
      searchDef.FieldFilters.ForEach(f =>
      {
          if (f.IncludeAggregation)
          {
              //// create an aggregation with filter query.
              aggList.Add(new FiltersAggregation(f.FieldName!) { Filters = new Buckets<Query>(this.GetFilterAggregation(searchDef, f.FieldName!, qry)), 
                  Aggregations = new TermsAggregation($"{f.FieldName}") { Field = new Field(f.FieldName! + ".keyword"!), MinDocCount = 0, Size = 10000 } });
          }
      });
      var globalAggregation = new GlobalAggregation(globalAggregationName) { Aggregations = aggList };
      return globalAggregation;
  }

Expected behavior
Achieve Global aggregation with the combination of filters and Term aggregation.