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

...large number in egef_metadata

Fixes #7009
Consider value `0123`. Valid numeric octal in PHP, this will syntax error in SQL.