Sorry to hear that you are facing issue in creating link, Please make sure you have proper internet connection and try again ,If the issue is still persists please share the following details with us for further analysis .
Which version of XD you are currently using?
In which OS you are facing this issue?
Could you please also mention the size of file that you are publishing?
Can you upgrade to the latest version of Adobe XD and let us know if you are still facing this issue? If you are, and need assistance, please get in touch with us using this link https://adobe.ly/2WYE62m Use the chat button to get started.