While we could waste time with this one trying to trouble shoot, let's just try to rule out hardware all together.
If you have a key for Windows 10, keep it handy, if not and you did something like a free upgrade, then make sure to link your user account on the PC to a Microsoft account, then backup any important files to the cloud or an external drive, then grab a USB stick that is at least 8GB in size and make a new bootable drive using the Windows Media Creation Tool, then perform a clean install.
Refer to this guide for doing this.
If you are looking for the Windows 11 Clean install tutorial, you can find that here: Windows 11 Clean install tutorial (Click here) Otherwise, welcome to the Windows 10 Clean install tutorial This tutorial is intended to help you, step by step, to perform a clean install of Windows...
forums.tomshardware.com
After doing this and doing Windows updates, install DirectX SDK then after that's installed, do an install of this All In One VC++ Package
http://m.majorgeeks.com/files/details/visual_c_redistributable_runtimes_aio_repack.html
After all that, restart the PC and if the problem persists then it's a hardware issue