I am in 23.04. Same issue, random crashes. At the beginning though it was the SSD drive about to die, checked using smartmontools, everything reported right, updated to the last nVidia driver 535 from the proprietary drivers, Upgraded to kernel 6.4.3, no joy...
However noticed the laptop (HP Pavilion 15-csxxx, using NVIDIA GeForce GTX MX150) was all the times with fans running very fast, and a lot of heat coming from the sides. Installed lm-sensors and from the command line using sensors, noticed how the cores sometimes raised up to 85°C (185°F) and the ACPI driver up to 95°C (203°F)... in those events, happening randomly, there was a thermal cut, because the fans were not able to dissipate all the heat, and the system crashed, time and again...
Looking at some comments in forums, about nVidia GPU and new drivers v535.x problems, I decided to replace it by OpenSource driver noveau... And presto! All troubles disappeared . No more crashes, nor raising temps in HW, even if I run VBox virtual machines or do a video format conversion. Temps are stable at around 39°C (102°F)
I'll do what was suggested by some other forums: Not install any nVidia-related drivers until the upgrade looks fine.