I've had some problems since upgrading to 22.10, which have escalated in the past 2 weeks.
It started with Firefox, both normal and Nightly will suddenly freeze, but just the UI, the pages still work and I can use them normally, if I click on another tab, nothing happens, but if I switch to another app or alt-tab and come back it switches to the tab I clicked, Initially I thought it might be a problem with firefox, but I found nothing about it and now I'm not so sure, because now:
We come to problem number 2, that's been happening only for the last two weeks or so, in increasing frequency:
When I'm playing a game through Proton, the game sometimes will suddenly freeze for a moment, if firefox is open it will close by itself, with no crash message or anything, and will not open again until restarting, the game will look normal, but I won't be able to save, and the last save will be corrupted, and the weirdest of all: It also affects the Ubuntu system: after that happens, I'm not able to open a terminal at all, when I click the upper right menu the icons for screenshot, settings, and power sometimes are gone, but when they aren't, and I click to restart or power off nothing happens, it's like the UI still works but the system itself doesn't.
I already restarted with a fresh install and the problems still happen.
Here is a screenshot of what happens:

The Specs of the laptop:
i7-8700k
ROG Maximus X Code
64GB DDR4
1080ti
My laptop is running a stripped-down version of Ubuntu 22.10 with no programs other than steam installed yet, both installed on a Samsung EVO NVME SSD.