I suggest checking the reliability monitor or the event viewer. Last time I had a problem like this, it was because my HDD was damaged but not completely dead, even at this point it keeps working. It was only noticeable because the OS was in a different drive and only happened while playing games using the HDD. The drive did not show any SMART errors but as soon as I ran a short DST, it showed the error.