### Description

A query like `any where true | head 2147483648` fails with `class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')`.

While one like `any where true | head 2147483640 + 8` fails with `"type": "arithmetic_exception", "reason": "integer overflow"`.
x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/parser/LogicalPlanBuilder.java
throw new ParsingException(source(key), "Unrecognized option [{}], expecting [{}]", k, RUNS);
                }
            }
            int runs = 1;
            NumberContext numberCtx = sequenceTermCtx.number();
            if (numberCtx instanceof IntegerLiteralContext) {
                Number number = (Number) visitIntegerLiteral((IntegerLiteralContext) numberCtx).fold();
                long value = number.longValue();
                if (value < 1) {
                    throw new ParsingException(source(numberCtx), "A positive runs value is required; found [{}]", value);
                }
                if (value > 100) {
                    throw new ParsingException(source(numberCtx), "A query cannot be repeated more than 100 times; found [{}]", value);
                }
                runs = (int) value;
            }
            int numberOfQueries = queries.size() + runs;
            if (numberOfQueries > 256) {
                throw new ParsingException(
                    source(sequenceTermCtx),
                    "Sequence cannot contain more than 256 queries; found [{}]",
                    numberOfQueries
                );
            }
            for (int i = 0; i < runs; i++) {
                queries.add(sequenceTerm);
            }
        }
        if (queries.size() < 2) {
            throw new ParsingException(source, "A sequence requires a minimum of 2 queries, found [{}]", queries.size());