To fix it when your PS4 is overheating, shut it down and wait for it to cool off. Then, ensure the device is in a place with proper airflow, check the room's temperature, and clean the PS4 to remove dust and debris. If it overheats on a particular game, update the game software.