### 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/test/java/org/elasticsearch/xpack/eql/planner/QueryTranslatorFailTests.java
public void testCIDRMatchMissingValue() {
        ParsingException e = expectThrows(ParsingException.class, () -> plan("process where cidrMatch(source_address)"));
        String msg = e.getMessage();
        assertEquals("line 1:16: error building [cidrmatch]: expects at least two arguments", msg);
    }
    public void testCIDRMatchNonIPField() {
        VerificationException e = expectThrows(
            VerificationException.class,
            () -> plan("process where cidrMatch(hostname, \"10.0.0.0/8\")")
        );
        String msg = e.getMessage();
        assertEquals("""
            Found 1 problem
            line 1:15: first argument of [cidrMatch(hostname, "10.0.0.0/8")] must be [ip], found value [hostname] type [text]""", msg);
    }
    public void testCIDRMatchNonString() {
        VerificationException e = expectThrows(VerificationException.class, () -> plan("process where cidrMatch(source_address, 12345)"));
        String msg = e.getMessage();
        assertEquals("""
            Found 1 problem
            line 1:15: second argument of [cidrMatch(source_address, 12345)] must be [string], found value [12345] type [integer]""", msg);
    }
    public void testConcatWithInexact() {
        VerificationException e = expectThrows(VerificationException.class, () -> plan("process where concat(plain_text)"));
        String msg = e.getMessage();
        assertEquals("""
            Found 1 problem
            line 1:15: [concat(plain_text)] cannot operate on field of data type [text]: No keyword/multi-field defined exact matches \
            for [plain_text]; define one or use MATCH/QUERY instead""", msg);
    }