Thank you for reaching us!
I understand that you are unable to share the OneDrive file to your external domains and your getting error message couldn't resolve user - <username>.
Could you please check the below.
For people outside your organization to sync shared libraries and folders you need to follow the requirements External sharing must be enabled for your organization.
Also, please refer the below articles
https://learn.microsoft.com/en-us/microsoft-365/solutions/collaborate-on-documents?view=o365-worldwide
https://learn.microsoft.com/en-us/sharepoint/turn-external-sharing-on-or-off
Hope this helps. Please let us know if you need any further assistance on this.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.