If a window unit vent out its side, the wall will block the vents and cause overheating. Only window AC models that have a slide-out wall sleeve can be installed through a wall. There are wall sleeves.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.