Before you buy a new computer, I would suggest you try Throttlestop with Frank1119’s suggested settings.
It stopped the crackling in one of my Lenovo Thinkpad P 16 (Gen 2). I suspect I was not able to use nearly the full amount of CPU the laptop was capable of. Hence crackling.