OP's landlord is threatening with eviction. Are you aware how fucking serious that is? In the current climate, this alone can single-handedly ruin someone's life and future. Eviction shouldn't even be on the table, and it wouldn't be, if it wasn't because of scalpers hoarding the entire housing market, and then holding working class people hostage if they don't play by the landlord's petty rules (which includes paying a fuckton of money monthly!)
The instant that the landlord threatened with eviction, they positioned themselves solidly in the wrong. For such a disproportionate threat to be justified, there should be reasonable suspicion that the tenant is going to commit homicide or plant a bomb or something over that level. Anything below that is an abuse of power, and said power is only as legitimate as scalping the market is.
I literally couldn't care less about AC or the window, and you are either being dishonest or acting like a shitty human being if you unironlically claim that the way OP uses AC warrants a threat of eviction. Even if OP were 100% in the wrong regarding AC (which is, in turn, not something I agree with, but I'm not getting into that), there is a whole world of difference in scale. By equating these two levels of magnitude, you are definitively siding with the landlord, even if you don't explicitly claim to do so (and you are, thus, also positioning yourself solidly in the wrong).
Also, y'all should be ashamed to call OP 'insufferable' for replying in a slightly mean tone after continuously being told that akshually maybe the landlord is right, and that they're oh such a troublesome tennant, after being threatened with fucking eviction.