The downside of it happening only every few days is the amount of time it may take to test it.
Although the AMD chip is an attention-getter... I would focus on troubleshooting two things first: The desktop gnome-shell and the gnome-extensions.
You can run a reinstallation of shell immediately as a start. If that does not have the desired effect, we can try continued troubleshooting.
Try installing Gnome-Tweak tool and disabling all extensions listed in the right pane of the Extensions Tab on the Left Pane:
sudo apt install gnome-tweaks
With all extensions disabled, test to reproduce. If the problem no longer occurs we have narrowed it to the extensions. You can then enable the extensions one at time until you have narrowed down the extension that is at fault.
A time saver may be to reinstall all gnome-extensions at once and see if the problem goes away. While this won't narrow down which one was faulty, (if it works) it will resolve your issue.
For the below command double-check for whitespace or misspaces before hitting enter in the terminal: