Hi @Dario Murillo,
Great to know that and thanks for sharing the update here.
This serendipitous issue is most likely a problem with SharePoint parsing external sharing settings, but I appreciate you sharing your workaround with me.
By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
[SharePoint could not resolve user]
Issue Symptom: SharePoint get an error: Can't resolve external user when sharing files.
Current status: This is an incidental issue, and we can reconfigure the sharing and guest related configurations. The system is back to normal.
You can let more people know about your sparkling solution by clicking Accept this summary. This can help other users in the forum to find a solution when they encounter the same problem. Your contribution is highly appreciated.
Have a nice day!