Put a box fan in there with it so when genny runs so does the fan, See what that does / Check for loose wires that could build up heat / Feel those wires after it shuts down see if you get a hot one / Maybe just maybe the AC is overloading and getting too hot and drawing lots more amps then its supposed to ? Might take a few cold ones to think this over