fix(core): prevent sql exception when metastring is interpreted as very ...

...large number in egef_metadata

Fixes #7009
It feels like this is not an exhaustive list of operands, I can think of ```<>```, ```NOT IN``` etc.