Short cycling (system runs 5 minutes, off 5 minutes, repeat) causes: oversized equipment, low refrigerant, dirty filter, faulty thermostat, or failing capacitor.
Diagnostic always starts with filter and capacitor checks. If those are good and the system is the right size, you likely have a refrigerant issue schedule service.