This has been affecting me for ages too! I tried everything, updating OpenCore, even taking apart my case and dusting everything. In the end, I took out the SMCAMDProcessor.kext and AMDRyzenCPUPowerManagement.kext kexts and everything went back to normal to me, hope this helps for some of you!