You need to get on the latest version and that requires W2016 and above:
https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-version-history
The older version supports W2012 but its begin retired. Do not install the older version!