If it’s not the graphics card then hopefully it’s something cheap to fix. I’ve had random behaviour like that with failing hard drives and broken RAM. Try and run a memory test, if you haven’t already.
Search for “Windows Memory” and click on Windows Memory Diagnostic to get started.
