This error usually occurs due to the corrupted AMD driver installation.
Download the free program DDU Display Driver Uninstaller. Run it in save mode with the internet disconnected. Once it finishes uninstalling the current AMD driver in safe mode and boots back to Windows Desktop, still make sure that the internet is disconnected. Delete the AMD installation folder C:/AMD if you have created it before.
Now install the full AMD Driver package you downloaded manually from the AMD download page. Both the express package. Now run the package and if it installs correctly again delete C:/AMD folder and after that reconnect to the internet again.
This will help to prevent any conflict when installing the new versions form the previous versions.
By the way C:/AMD is always created when the user runs the AMD Driver package. Also if the user has Navidia GPU card installed before to make sure that all trances of Nvidia Driver are also removed using the DDU. You did not need to mention if you were replacing a previous GPU card with RX570.
I hope this will help to solve your problem.