Hard to say what is happening as nobody on our Support team uses gridsome at all. Looking at this logline, it does “smell” kind of like a memory overuse issue:
…since the build looks like it crashes out during that step (which makes for some interesting plugin errors later on).
But let’s start with the basics: can you still build locally? That’s always a good first step in debugging builds: