It seems that the usual cause of the problem is that ImagePath is pointing to the wrong file path for the registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\AMDRyzenMasterDriver
Check the file path for the ImagePath value and change it to the actual file path. (Find the correct path, then hold down the Shift key, right click on the file and Copy as path)