This is from dictation. Please ignore obvious errors.
Here is some additional information. Most modern desktop PCs used forced air cooling typically a desktop PC will have three or even for fans. One is on top of the CPU, another one is on the back of the case and a third is on the back of the power supply. In some cases there might even be a fourth fan mounted on a graphics processor card.
All these fans must be working properly to keep the desktop PC running. If any one of these fans stop, the PC will probably shut down in a few minutes. Opening the sides of the PC case does not solve the problem of a bad fan.
Besides the issue of the fan, internal temperatures may rise up to a point where it will cause the computer to stop because of a thermal cutout device that is sensitive to heat.
One of the other problems that occurs very often is a video card becomes displaced. This is a very common problem, especially if the case has been dropped or recently moved from one location to another. And in some cases the problem does not show up immediately, it causes a intermittent condition where sometimes it makes contact another times it doesn't. That is very annoying, because it causes an individual to think of different things that are not the real cause. Such as one might suspect power fluctuations or things like that when really it is just an intermittent condition that occurs because the PC graphics card is not fully seated in the slot. That does happen, but I have no way of knowing if that is your problem. Be aware that any time you open the case there is a possibility of doing damage to it. So be very careful when you have computer case open. Also, it is a bad idea to run the computer with the case open because something just might fall into it like a little screw and offered something out.
Again, having more details about the specific make and model of your computer will help myself and others to do some research. Many members of this forum are very well experienced in doing research on desktop PC problems. If you provide more details, it will help others help you.
We want to help you as best we can.
End dictation.