Error Code 1058-4: Error code 1058-4 occurs when Office 365 Pro Plus is attempting to fetch updates. When you configure manual proxy settings for your users, it doesn’t affect the “Local System” account, rather Local System is always set to “Automatically detect settings”.
Therefore if it cannot identify the proxy through “Automatically detect settings”, the update will fail as the updater process cannot connect to the internet.