Chosen Solution

Cart sometimes loses all power while driving, but if I release the accelerator pedal and then reapply, it begins going again like normal.

I would double check your cable connections to your battery, make sure that they are snug on the terminals of the batteries, if that doesnt seem to be the issue then i would systematically go through the wiring for the cart itself.