Screen freeze or black screen while browsing or in idle is usually the GPU. My R9 390 did that, I returned it and changed it to a new one and all was fixed.
If it runs stress test for 30+ stable then it is highly unlikely to be the CPU.
You would be better off buying the correct RAM for Ryzen...