Hi,
The following are just checks to hopefully isolate where the problem is by eliminating potential areas that can cause the problem and also to check if the problem is being registered by the system.
* Run a [https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e|sfc /scannow] command to ensure that the OS system files are all OK. (Yes, there is a space between the sfc and the / symbol. This is old world computing. The mouse doesn't work in the command window so if you make a typing error, use the backspace key to delete back to where the error is and start typing again)
* Check in Device Manager that the latest [https://www.amd.com/en/support/apu/amd-ryzen-processors/amd-ryzen-5-5000-g-series-desktop-processors-radeon-graphics/amd|display adapter drivers] are installed. To get to Device Manager, press the Win key + x key (both together) and click on the link. When in Device Manager, scroll down to Display Adapters and ''right click'' on the AMD adapter entry ''> Properties > Driver'' and check what version is installed.
* Run the Windows [https://www.windowscentral.com/how-check-your-pc-memory-problems-windows-10|memory diagnostics tool] and check that the ram is all OK
* Check in Event Viewer for any ''Critical, Error or Warning events'' that may be logged at the same time as the problem occurred. If there are any events listed at the same time, search online using the ''Event ID and Source'' information to see what the cause of the event may be. To get to Event Viewer, press the Win key + x key (both together) and click on the link.
* If you can remember the date that the problem started happening, check if there were any Windows ''feature or quality'' updates on that day or perhaps the day after. Go to ''Settings > Update and Security > Windows Updates > View update history.'' If there was one you could try uninstalling the update and check if that resolves the problem. Click on Uninstall updates and find the update and then uninstall it. Write the update number down so that you can reinstall it later etc
Hopefully a start.