If the panel works but switching on a 120v load trips the gfci either the load has a earth fault( leakage to earth) or its not returning current to neutral but instead earth.
Something miss wired mixing neutral and earth to the panel might work for 240V loads but significant 120V loads cauld...