#57042 increases the limit for search.max_buckets from 10k to 65k, this applies to composite aggregation, too.
Transform hard codes the old 10k limit. This should be changed to support 65k.
Ideally we remove the hard coding and read the default from the default constant, even better would be to get the value from settings, because the 65k is the default of a cluster setting.