It would help to know all the specs. It's most likely your CPU is a problem as the 9590 requires very high-end motherboard and cooling, and a top-notch power supply, just to be stable. It's a notorious cause of issues and an unimpressive gaming performer for the trouble it takes to keep it running, which is why it's almost never recommended for a gaming PC.