Mine was doing similar and it turned out to be the electric fan. If I was sitting still there wasn't enough air moving over the condenser and it overheated causing the AC to overpressure and shut down. Once it cooled down or if I was moving it worked fine.