This isn't good because it can lead to overheating and destroying your motherboard. You can read on
softwaretesttips.com what you can do in such situations. But I think that your CPU is overloaded. You need to close all background software. I also had such a problem, and my CPU was constantly overloading, and it was causing crashes of my operating system. I found out that I have too many background apps, so everything started to work normally after I closed all of them. Maybe you have the same problem, and it will help you.