Hi Heffrey :)
My name is Aura and I'll be assisting you with your issue. How are you trying to upgrade to Windows 10? Via Windows Update or the Media Creation Tool? You do not need to address Windows Update issues on your current system if you plan on upgrading to Windows 10, because all the system files are being replaced by Windows 10 ones, so the "corruption" won't exist anymore.