If you really think about it, there’s no such thing as "pirated" software—there are just all these random versions floating around on torrent sites. People take an ISO and bake all sorts of weird modifications into it, which usually ends up being total garbage and leads to the exact kind of headaches you're dealing with. Honestly, at the end of the day, having a valid product key matters way more than the OS itself 😁
.
I won't drone on too long, but just grab the official version of Windows 10 Pro directly from the Microsoft website
.
https://www.microsoft.com/en-us/software-download/windows10
Once you get it installed, take a page out of my colleague's book and just pick up a product key for Windows 10 on eBay. You can usually find them for maybe $4 or $5—and I know they work. I've personally used them on ten different computers now, and I haven't had a single issue where the key expired or needed replacing, despite what some people claim 😁
.
If your computer is still acting glitchy after that, then it's 110% a hardware issue rather than a software one. If I were you, I'd start looking at the RAM. I'd run a scan using MemTest86+; it's free, so you really have nothing to lose
https://www.memtest86.com/download.htm