Is the compressor shutting off when the outdoor fan stops?
If not, it may be the capacitor. If you take the control box cover off, look at the capacitor and see if it is bulged out at the top (like a soda can that has been pressurized).
If the compressor also stops, it may be a high or low...