After updating Windows 10 Pro to the May 2020 update I installed AMD Radeon software version 20.5.1 . During the reboot I got the error message "unexpected kernel mode trap". Subsequent attempts to boot the computer eventually led to a system restore back to the previous AMD Radeon driver version of 20.4.2
This Windows tech site give many troubleshooting tips to fix that specific BSOD error: Full Fix: UNEXPECTED KERNEL MODE_TRAP error in Windows 10
Try using this basic Method to remove and install the AMD driver and see if the error returns or not:
Uninstall the current AMD Driver using DDU as per this method:
It could be due to a corrupted AMD Driver installation.
Download free program DDU (Display Driver Uninstaller). Run it in Safe mode with the internet disconnected.
You can also run it in Windows Desktop but then you would need to Reboot the computer for DDU to finish erasing all of the AMD Driver traces from your computer.
Once it finishes uninstalling the current AMD Driver in Safe mode and boots back to Windows Desktop, still with the Internet disconnected, delete the AMD Installation folder C:\AMD if it was created before.
Now install the full AMD Drive package you downloaded manually from AMD Download page. Not the express package. Run the package and if it installs correctly again delete C:\AMD folder and reconnect the internet.
This should prevent any conflict when installing the new version from the previous version.
By the way, C:\AMD is always created whenever you run the AMD Driver package