Synching a Mac Addressbook with NextCloud is not as easy as it might seem.
Theoretically the CardDAV CalDAV Standards should make things easy. In practice it's a nightmare. See e.g.
Here you'll find some technical details that might help you debug your situation.