This is why you have to do some research before attempting to turn an office PC into a gaming rig.
Honestly, it isn't even worth it, anymore. Look at the prices for a used Ryzen 5 3600, or 10th gen Core i5 gaming PC. I've seen them as low as $300, with 16 or 32gb and a graphics card, and it's...