Check for Computer Overheating Issues
All computers generate heat as they operate, which can cause damage to the system. Therefore, it is crucial to remove this heat to keep the computer running smoothly. Always check the temperature of your computer, since high temperatures can cause parts to jam, leading to a black screen, automatic restarts, or even accidental shutdowns. So, be mindful of the heat level and take necessary precautions to avoid any damage.
So the solution to this situation is to open your PC and clean the cobwebs. Use a vacuum to clear dust, and check fan works or not?. (Note: that when cleaning, limit vacuuming near the internal cables and replace the fan if it does not work.)