The computer might be over heating, so don't run many programs at once (which puts pressure on the cpu) so if non of that works, you could see the temperature of your CPU using a program (although they are not brilliantly accurate) so you could try installing a new fan which can be very cheap these days.