try adding idle=nomwait as a boot parameter … this is the only thing that worked for me … one of my ryzen laptops was freezing 4 or 5 times a day with all linux distros that i tried … took about a month of troubleshooting before i found the solution on some forum or the other
adding the boot parameter fixed it full stop and is now the first thing i do when installing a new system on this laptop
that is idle=nomwait (with an ‘m’) … made that mistake once
here you go … this is the link that helped …under kernel boot parameters … now not a single freeze in 2 years or so on a machine i use as a plex server and is left on 24/7
no idea if the problem is the same but is sounds very similar to mine and it turned out to be a simple fix for a very bothersome issue that nearly had me scurrying back to windows