The R5 2600 came with an older Wraith Stealth variant rated for 65w and the 5700x is a 65w TDP chip. It'll work, provided you clean and repaste it correctly. It won't do a great job, but it should run within specs. Honestly, I'd seriously consider buying a new cooler.