Currently it is possible to mix nested and filter(s) aggregations in such a way that the filter aggregation matches documents that are not in the same scope as its parent aggregation, which can cause weird failures, see for instance #23280. We should improve validation to catch these problems earlier and raise a nicer error message.