No need for that i finally did it. I serached on internet for this error message and came upon another forum that talked about the error and all i had to do was type this command in command pront as Admin:
rundll32.exe pnpclean.dll,RunDLL_PnpClean /DRIVERS /MAXCLEAN
Then I had to turn off my wifi and bluetooth before rerunning the setup. I didn't thought it would work but as soon as my laptop restarted the update was stuck on 0% but it actually started at 12% and I was in shock and it did install and now my laptop is up to date. Thank you for all the work that you put to help me! I'm really greatfull and here is the link to the the forum page that I got the solution from, its the first comment under the post: https://answers.microsoft.com/en-us/windows/forum/all/the-installation-failed-in-the-safeos-phase-with/7f910879-39b1-4459-b3e0-abe84208e4d6