Your story reminds me a little bit of an issue with the late-Intel macbook pros. If your USB-C charger was plugged in on the left side, and you had an external display connected as well, you'd get crazy thermal throttling. I believe this was because the GPU was on the left side, and so the heat from the charging chip + the GPU resulted in the Macbook deciding to throttle the CPU and crank the fans to max. The solution was to charge on the right side.

https://eshop.macsales.com/blog/61253-power-your-macbook-pro...

There's a similar issue with the old ASUS ROG laptops, my old 17" 2017 one had a higher CPU throttling curve than the GPU, and they shared a heat pipe, so with the CPU at 100%, the GPU would throttle hard and slow games down. The solution was to drop the max CPU down to 90% or something, barely noticeable loss in CPU performance in exchange for a full speed GPU.

(Why did I get another ASUS? Well, after the throttling issue was fixed, the 17" was a beast, it survived dozens of mine site commissioning trips, tons of abrasive iron ore dust, and having a 2" ring spanner dropped on the keyboard (which left a nasty dent but the keyboard still works!). It's still going as my kid's gaming laptop, battery life is now only a few minutes but while plugged in it's fast enough for most modern games. And my partner had just bought a 13" Zephyrus and it was really nice and we hadn't noticed any issues with it.)