I have a google pixel 2xl. A few weeks ago my phone started overheating as soon as it gets used. I factory reset it and it was fine. Then I installed CE and instantly it started overheating again. Any help would be appreciated. Downgrading to a lower version of CE does not fix it.
I only know of one case like this. The other member had a different model Pixel but, like you, had the latest version of CE (22.214.171.124) and said that the phone seemed to be overheating. He updated to Android 10 and didn't see any issues after that. Let me encourage you to try that and see what happens.
If this issue starts showing up more frequently, I'll post again.