The matrix g is 100x100 and symbolic. Do you really expect to get a symbolic inverse? I tried with the 8x8 case and the determinant of g takes 400 megabytes of memory.
You can try numericizing g, but it turns out that it is badly conditioned for the inverse.
Instead of inverting the full matrix, you may try solving the system g.x=G.