My laptop: HP 255 G8; AMD Ryzen 7 5700U; 8GB RAM; Ubuntu 22.04 with kernel 5.19.0-051900-generic.
Everything is normal if I work with it without suspending, but if I suspend and then resume, it will often crash some time later. It first freezes (if I listen to music it repeats for several seconds with fans blasting on full speed), then reboots by itself. After rebooting, everything goes back to normal, though it still sometimes crashes like that after several hours of normal work. If I reboot manually after a crash, it doesn't seem to crash by itself.
Please explain what I need to add if this is not enough information; I am new to Ubuntu and to Linux in general.