### CI Link

https://gradle-enterprise.elastic.co/s/xws6gmgwdwnmm/tests/overview?outcome=failed

### Repro line

./gradlew ':x-pack:plugin:esql:test' --tests "org.elasticsearch.xpack.esql.CsvTests" -Dtests.method="test {rename.RenameProjectEval}" -Dtests.seed=F32BCA1B870438F -Dtests.locale=ar-LY -Dtests.timezone=UTC -Druntime.java=21	

### Does it reproduce?

Yes

### Applicable branches

main

### Failure history

_No response_

### Failure excerpt

```
java.lang.AssertionError: java.lang.IllegalStateException: can't release already released block [IntVectorBlock[vector=IntArrayVector[positions=3, values=[2, 5, 4]]]]
```
x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/EsqlActionIT.java
assertEquals(expectedFieldName, valuesColumn.name());
            assertEquals("double", valuesColumn.type());
            ColumnInfo groupColumn = results.columns().get(1);
            assertEquals(expectedGroupName, groupColumn.name());
            assertEquals("long", groupColumn.type());
            
            List<List<Object>> valueValues = getValuesList(results);
            assertEquals(2, valueValues.size());
            
            if ((long) valueValues.get(0).get(1) == 1L) {
                assertEquals(42.0, (double) valueValues.get(0).get(0), 0.0);
                assertEquals(2L, (long) valueValues.get(1).get(1));
                assertEquals(44.0, (double) valueValues.get(1).get(0), 0.0);
            } else if ((long) valueValues.get(0).get(1) == 2L) {
                assertEquals(42.0, (double) valueValues.get(1).get(0), 0.0);
                assertEquals(1L, (long) valueValues.get(1).get(1));
                assertEquals(44.0, (double) valueValues.get(0).get(0), 0.0);
            } else {
                fail("Unexpected group value: " + valueValues.get(0).get(0));
            }
        }
    }
    public void testFromStatsGroupingCount() {
        testFromStatsGroupingCountImpl("from test | stats count(count) by data", "data", "count(count)");
    }
    public void testFromStatsGroupingCountWithAliases() {
        testFromStatsGroupingCountImpl("from test | eval grp = data | stats total = count(count) by grp", "grp", "total");
    }
    private void testFromStatsGroupingCountImpl(String command, String expectedFieldName, String expectedGroupName) {
        try (EsqlQueryResponse results = run(command)) {