### CI Link

https://gradle-enterprise.elastic.co/s/752jgoui6up4c/tests/:x-pack:plugin:spatial:test/org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests/testIndexPoints?top-execution=1

### Repro line

`./gradlew ':x-pack:plugin:spatial:test' --tests "org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests.testIndexPoints" -Dtests.seed=DFC1C0965EFCD1EB -Dtests.locale=sr-CS -Dtests.timezone=ECT -Druntime.java=17`

Also failed with various other seeds:
* `-Dtests.seed=DFC1C0965EFCD1EB`
* `-Dtests.seed=72BEB29AA48F2C0B`
* `-Dtests.seed=CAF2A0770CD2CC7E`

### Does it reproduce?

Yes

### Applicable branches

main

### Failure history

https://gradle-enterprise.elastic.co/scans/tests?search.timeZoneId=Europe/Stockholm&tests.container=org.elasticsearch.xpack.spatial.index.query.H3LatLonGeometryTests&tests.test=testIndexPoints

### Failure excerpt

    java.lang.AssertionError: expected:<81> but was:<82>
x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/search/GeoGridAggAndQueryConsistencyIT.java
.precision(i)
                .setGeoBoundingBox(boundingBox)
                .size(256 * 256);
            SearchResponse response = client().prepareSearch("test").addAggregation(builderPoint).setSize(0).get();
            InternalGeoGrid<?> gridPoint = response.getAggregations().get("geometry");
            assertQuery(gridPoint.getBuckets(), queryBuilder, i);
        }
    }
    private void assertQuery(List<InternalGeoGridBucket> buckets, BiFunction<String, String, QueryBuilder> queryFunction, int precision) {
        for (InternalGeoGridBucket bucket : buckets) {
            assertThat(bucket.getDocCount(), Matchers.greaterThan(0L));
            QueryBuilder queryBuilder = queryFunction.apply("geometry", bucket.getKeyAsString());
            SearchResponse response = client().prepareSearch("test").setTrackTotalHits(true).setQuery(queryBuilder).get();
            assertThat(
                "Expected hits at precision " + precision,
                response.getHits().getTotalHits().value,
                Matchers.equalTo(bucket.getDocCount())
            );
        }
    }
    private static List<Point> toPoints(Rectangle rectangle) {
        List<Point> points = new ArrayList<>();
        points.add(new Point(rectangle.getMinX(), rectangle.getMinY()));
        points.add(new Point(rectangle.getMaxX(), rectangle.getMinY()));
        points.add(new Point(rectangle.getMinX(), rectangle.getMaxY()));
        points.add(new Point(rectangle.getMaxX(), rectangle.getMaxY()));
        return points;
    }
}