Forget about the factory reset crap. All that does it put all the original useless bloatware and useless "optimizing" utilities back on there too. You need to do a clean install. Clearly, from what I'm getting through your description, it has never been done. If you can still access the system at all, then back up anything important that you have before going forward, likes files, folders, games, pictures, music, movies, etc. that are not replaceable.
If it's already past the point where that is possible, then don't worry about it.
Download the latest installer as per the steps in the instructions and create bootable USB media with the latest Windows release on it.
If there are other drives attached to the system besides the drive (NOT partition, DRIVE, the WHOLE drive, not just a partition) you plan to install the OS on, disconnect them whether they are internal drives or external drives.
Next, attach the USB drive, start the system, enter the bios by pressing delete, or F2 or whatever it is that your system requires in order to enter the bios and use the one time boot order override if your system has that, or temporarily change the boot order so that the USB drive is the first drive in the boot order, save settings and exit bios. System should boot the installer you created as per the instructions.
Follow the guide the rest of the way though.
Windows 10 Clean install tutorial
ANY other method is unlikely to offer a resolution to your problem, and if the problem is actually hardware related, like a bad graphics adapter or overheating hardware, this still won't fix that, but I rather think your problem is software, not hardware. Follow the step EXACTLY as outlined. DO not deviate from them IN ANY WAY.