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

...large number in egef_metadata

Fixes #7009
I'll give it a test.  Assuming you're correct do you have any ideas regarding this?  Note that if it fails with this it fails currently.