You mentioned you had power to the gfci. That implies the problem is at, in or after the gfci. I confess I assumed everything after had been functioning and that there was no change. So, if the wiring at the unit is good (panel or inlet to line side of gfci) and you didn’t get a faulty, new unit (it happens) then the problem should lie after the gfci.
To test:
Turn off breaker
Disconnect load side wires from gfci. Turn breaker back on, Try to reset gfci. If it works you have confirmed an issue in the down stream wiring or any connected devices/loads. If it doesn’t recheck wiring from panel to line side of gfci. If wiring is all good you may have faulty gfci, try a new one.
Next steps if you were able to reset.
Turn off breaker
Unplug/disconnect any devices/loads from outlets or that are hardwired to the same circuit. (You mentioned charger/inverter showing 12.5v. Is it powered by ac from this same circuit? If so disconnect from the circuit as well)
On disconnected load side wires (downstream) at the gfci, with mult meter check for any voltage, assuming none switch to test continuity. Test for continuity between hot and neutral, hot and ground, finally check ground to neutral.
If there is any continuity you either have a hard wired load somewhere or a short.
If no continuity then reattach load side wires to gfci and see if it trips or if already tripped can it be reset?
If it can be reset then the problem lies in one of the loads/devices unplugged
If you have continuity in tests above, you have either a short, a load still attached to the circuit or both.
Steps from here would involve going from each outlet/box on the circuit to the next outlet/box and disconnecting the wires and testing for continuity in the upstream wires, then the downstream wires until you can localize the short/load.
Also just for further clarification as there appears to be some confusion based on the answers that have been provided. Is the gfci after the boats main ac panel or between the shore power connection and the panel?