Hello Sir,
Check you overall cpu, gpu T°, test you memory and test you power supply.
Try to change the power plan settings, leverage the 3 different default power plan setting and check if it help.
Try to disable the "Fast Startup" windows option and also disable the "SuperFetch" windows service to check if it help with the issue.
Try to upgrade your machine with the last motherboard bios from the manufacturer, upgrade also to the latest drivers you could.
Also AMD is having some trouble lately with the windows patch, especially the ones that mitigate the recent discovered flaws.
If this happened only lately, in the past few weeks, try to uninstall the last windows updates to check if it help solving the issue.