A pc can never beat a PlayStation when it boils down to active gaming... The Sony PlayStation was specifically built to handle the gaming heat... The processors are not the same in anyway... You should slow down on the type of games you install ... If your computer is freezing, go for lower quality games or get a gaming console
Even though a Playstation (or any sort of console) was designed to focus mainly in video games that are catered to it's processing architecture doesn't make it superior to the ever expanding PC. When you build or purchase a prebuilt PC you're building it with certain games in mind and from that you will select the components needed to support those games you want to play. If one experiences stuttering or freezing of any sort your PC is out of date and needs either upgrades or time to build a new system. A PS4Pro and PS5 pale in comparison to a gaming computer where you can manual adjust everything in the PC and game to fit your desired graphical taste. You're usually stuck in a toggle system in these closed OS's that these consoles provide and often than not these games are optimized so the machine can run them properly.
I own a PS4 Pro and I love it but it can never replace my Desktop gaming PC. Not even a PS5 can do that. When I can run any triple-A title at or above 80~90FPS and other games to match or surpass my 165Hz monitor (meaning reaching 165FPS+ in other titles) whereas a PS4Pro can ONLY achieve 60FPS and the PS5 120FPS (if the game allows it and is optimized to run at that FPS).
PC doesn't have limitations, Consoles do...