How to install a mini split when you have brick walls
You can drill small holes through a typical masonry wall without compromising its load-bearing.

Assuming the holes are no more than a few inches in diameter, well spaced apart and are few in number, there should be no problem.

If in doubt, ask an engineer.