Hi,
The installation might be corrupt. This has been also identified with “lost service id” while you re-enable the connection between your AD DC to the global directory.
You can try to re-install Azure AD Connect. If it doesn't work.
Download The Program Install and Uninstall troubleshooter from the link below.
Open the troubleshooter, click next -uninstalling-Select Azure AD Connect-Yes, try uninstall, and following the rest step to uninstall it.
After that, go to Regedit, HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products
Find the folder AF12EE9B0A6277046A0C7C4BB424D97D, and check if the product name is Azure AD Connect.
Delete that entry, restart your server, and reinstall the Azure AD connect.
Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!