Not sure if the responsibility is on the user or the library. Not sure if it's easy but when emitting to JSON you could convert to a string if there is a leading zero number, as it is invalid in JSON.
When I run my dbt models using 1.10.5 all models throw the error below. If I run the same models using 1.10.4 everything works normally. Error message (I use "MODEL ...