Hi Kyril and welcome to our community!
To start with, building locally uses your computer, and building here uses ours. The difference in config is the usual reason for builds failing here but not there, and our usual debugging steps are described here:
I can see you’ve maybe heard that advice already, since you checked gridsome versions (and thank you for mentioning that!), but also check node versions and $NODE_ENV
and the rest desribed there, please!
If all of that fails, could you tell us what happened when you tried to build locally in our container? GitHub - netlify/build-image: This is the build image used for running automated builds
If you’re still not finding a fix, in the end, it will be useful to get a link to your deploy logs rather than just the quote, so we can examine your site settings in the database directly.