This problem can only be solved by a trained professional. It could be a bad breaker, loose connection, compressor bad or going bad, need hard start kit, etc....There is no way to tell on this forum what it is or how much it will cost for repairs. But a thourough inspection of all wiring and operation will tell. Good luck.
Me:here's your invoice. The total is $$.. Customer:Oh would you check...while your here?