Do you have any USB external Hard Drives connected to your computer, like a Seagate Backup Plus or something similar? If so the drive could be failing, this can cause the same type of issues you are experiencing. If so, try disconnecting the USB drive and restart the computer, keep the USB drive disconnected and see if the issue returns.
I had similar issues a few weeks ago where programs would randomly stop responding and then one by one their windows would go black until the entire screen was black and the PC would not respond and would need to be hard started and the hard start would take a really long time to boot back to Windows, if it would at all. Eventually it would not boot past post, come to find out it was because my Seagate USB 3.0 External 4TB Backup Plus Drive had died and Windows would recognize a device but the boot sector was damaged beyond repair so Windows would hang if the device was plugged in, lost 2.5TB of data but at least my actual PC was actually still working fine.
It could possibly be an internal drive failing also, you stated that it seems to go to black when the hard drive is accessed.