Hello, please, as a sysadmin (EG: sa user), run the following TSQL query in the target SQL Server.
CREATE LOGIN [DOMAIN\MACHINENAME$] FROM WINDOWS WITH DEFAULT_DATABASE= master
GO
ALTER SERVER ROLE [dbcreator]
ADD MEMBER [DOMAIN\MACHINENAME$]
GO
Alternatively and to keep a more tight access control, you can create the ADSync database out of band. For this you need to only create the login and grant it db_owner database permission.
Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.