It is bad practice to set a global action preference. Empty the profile to remove the error action preference. Since the profile has nothing else, you could even delete the profile using the following command:
Remove-Item $PROFILE
Read the best practices for more information.