Studio freezing every time I click on Mac

I’d recommend viewing my latest post, I solved this (temporarily) by executing a few commands.