I find the best way to fix things is to reinstall your operating system. it can be time consuming but it works every time. You can also do a system restore.
if it was an overheating issue you computer would shut down after some amount of time. could be a sign your hard drive is going out, but that is just a guess.