Sounds like as the load increases the compressor is drawing too many amps and tripping the breaker once it reaches the breaker limit. A couple of causes, not in any particular order.
Compressor is starting to fail.
Loose wire connection somewhere along the electrical system of the compressor. At the breaker, at the compressor etc.
Clogged outdoor coil causing the compressor to work too hard in high heat conditions. Make sure the outside of the coil is free of tree cotton etc. I use a 3" paint brush with the bristles cut short to about 1-1.5 inches to clean the cotton off of my coil. Flush the coil from the inside out with a water hose.
Damage to outside of coil not allowing for proper air flow. May need to comb coil.
There may be a few other causes I am missing.
2010 Eagle Super Lite 315RLDS
2018 GMC Sierra 3500HD 6.6L Duramax
2010 Nights 45
2011 Nights 70
2012 Nights 144
2013 Nights 46
2014 Nights 49
2015 Nights 57
2016 Nights 73
2017 Nights 40
2018 Nights 56
2019 Nights 76
2020 Nights 68