The compressor may be overheating, or the filter may be dirty. Depending on how old your AC unit is, a window AC unit can leak refrigerant over time. Is that correct? The window AC thermostat will turn off the cooling mode if the room is already cold enough.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.