2010 GEM Stops Working for Seconds

I have a 2010 GEM. It runs great but will suddenly cut out while driving. It will then start again moments later. It will continue this pattern at times, however, there are other times it runs great and this does not happen. I have noticed it does better on a completely full charge but will do this at three quarters full so not sure that is a thing. Looking for ideas.

ignition key . Wiggle it while driving .