First up, try restarting the Origin app. You should not only close the app by clicking on the Cross icon but also open Task Manager, right-click on all the processes related to Origin, and select End ...
To fix Origin error code 9:0, Installer encountered an error, check out the following solutions. Restart and retry installing Restart the Microsoft .NET Framework ...