Have all work permitted and inspected. WE KEEP GOING UNTIL YOU HAVE THE INFORMATION YOU NEED. I come and go. be patient.
Hello, welcome to Just Answer !
Its most likely over heating, the compressor is getting hot... its internal overload trips, and it won't restart until the compressor cools off inside.. that takes a few hours.
Most likely cause of over heating on units over 5 years old is dirty heat exchanger coils.. those are copper tube/ aluminum fin radiator looking things... dirt packs *between the fins.. a dirty coil will often look clean for that reason.
cleaning is a messy job. You need a coil cleaning kit from any large hardware store.. follow the directions.
That one shows a brush, thats OK, but a 'fin comb' is a little better.
Find the two fin coils on your unit, then figure out how to access both sides of each coil. and you can clean them.
If you can only access the upstream side of the oil where all the dirt is impacted that will be OK too.
a wet / dry vacuum cleaner makes it a little easier.