A few days ago I had such a problem as well, that my computer (see my specs) was freezing regularly, without any real reason why. It did that in my browser, in File Explorer, VirtualBox testenvironment and many more programs. Restarting often was not possible, I had to touch the reset button on the panel of the PC. And it seemed to become more serious by days, eventually resulting in a totally unusable computer.
The first thing I did was testing the memory by a selfstarting USB-key with MemTest86. No problems detected.
Because I had read some reports about one of the last updates slowing down the system (in particular the File Explorer), I tried to restore an older image of the system drive, from about one month ago. I do such saving and restoring always with Clonezilla, which is situated on a selfstarting USB-key with Linux driver, totally offline, nothing to do with the Windows system on the system drive.
For some reason the restore did about the same as in the (normal) Windows environment: at a certain point (let's say 21%) it stopped or delayed counting up the Mbytes that were ready or did that very slow (where normally it goes steady on and on). When I would do the same restore again, it would stop or delay about the same percentage. Conclusion: the SSD system drive has bad sectors, which for some reason are not automatically replaced by good ones by the build in managing system in the SSD (I think it would normally function like that).
Because my son had told quite recently, he had similar problems (on an identical system, same make, same components) and he had repaired it by installing Windows 11 again (he too thought the updates were to blame), I tried that first, but already decided that I would replace the SSD-drive anyway. So I ordered another M.2 SSD (of another make).
In the meantime I reinstalled Windows completely, after deleting all partitions from that drive, using AOMEI on a Hirens Boot USB-key. Reinstalled Windows from a fresh downloaded Windows 11 23H2 USB, made by the Windows 11 Media Creation Tool (on another computer). Installation was done very well and rather fast.
Result: problem gone. Did partitioning as the drive was partitioned before, restored the most recent image. No problem anymore. I was very happy with that, because I did not need to reinstall all software and redo all settings that I changed (I have done many tweaks through registry changes, to be found here in the tutorials). Appearently the new windows installation had moved the system to another physical place on the SSD, thus 'repairing' the failure. That's what i suppose has happened, never can be sure about that, of course.
But I did not trust the SSD anymore, which was only one year old, so my decision to replace it, was there to stay.
One day later the new SSD arrived, I installed that, installed Windows 11 again from the Win11 USB, did the partitioning, restored the most recent image and everything was functioning very well. The new SSD had better specs than the old one, so the system is somewhat faster too. Since I changed the SSD and reinstalled the system etc., four days have been passing now without any problems. So I suppose the fault has been cured by replacing that SSD!
So maybe your problem is completely different from mine, but it could be caused by a 'hard disk' failure as well. That's why I mention it here.
The old SSD was of the make 'Kingston' of which @TechnoMage2021 has written some negative things, appearantly rightfully so. Was the first and the last SSD of that make I will buy...