Hi @ali deeb ,
a search in the internet with the error message will find some information about "unsupported" combinations of Exchange and Windows Server versions.
Even if the combination Exchange Server 2016 and Windows Server 2012 is supported may I ask you why did you choose Windows Server 2012?
Maybe it's an option to install the Exchange Sever 2016 on a Windows Server 2016. At least it's maybe worth to test if this is working without any issue.
Are you using a local administrators account for installing Exchange Server?
Maybe it's an option to deinstall Windows Defender to get the Exchange setup done:
# Run this before Exchange setup
Remove-WindowsFeature Windows-Defender-Features
# Run this after Echange setup is done
Add-WindowsFeature Windows-Defender-Features,Windows-Defender-Gui
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten