Please check if this ODBC Driver exists in the control panel -> uninstall program page, if yes, please uninstall it and the failed installation SQL Server.
If you installed SSMS first, this is also a possible reason, and did you uninstall ODBC driver? also can try to uninstall OLE DB.
Regards
Mikey Qiao
If you're satisfied with the answer, don't forget to "Accept it," as this will help others who have similar questions to yours.