I'd say flashing your OS would be the last option you do.
That's interesting, did you do anything just before this started to happen? New antivirus, firewall, changed some windows settings, got a new piece of hardware (this can be anything from a new mouse/headset/keyboard to more RAM)? Anything like that? Alternatively, have you done anything recently just before it started doing it less frequently?
I honestly wouldn't say that it's something to do with bad hardware in general just because it doesn't happen to anything else. What's your antivirus/firewall?
Another couple of commands you can try are:
and
Code:
DISM /Online /Cleanup-Image /CheckHealth
Run those in Command Prompt in admin mode and if there's any issue in general then it'll pick it up.
If that last commands picks up something then run
Code:
DISM /Online /Cleanup-Image /ScanHealth
then afterwards:
Code:
DISM /Online /Cleanup-Image /RestoreHealth
(I know Frog said about that before, but that's the order to do them in)
Also, this issue is common with RAM problems, but because of the nature of your issue it's unlikely that this is the problem but it's worth checking anyway just in case of other issues that could be hiding. Windows Memory Diagnostic is a tool that's hidden in windows already and it'll test your RAM checking for any errors in it. Just hit the Windows Key + R and type in "Windows Memory Diagnostic" then hit enter. Go through the steps and it'll restart your computer and test your RAM.
Here's a tutorial on how to do that, it explains it much better then I can
(On windows 10 you have to go through event viewer to get the logs from what I see so it'll just be easier to give you that link)