Hi,
You're facing this issue because Excel Online runs in a browser environment and doesn't have direct access to the local file system therefore it is not able to access links to folders hosted on a PC.
So, if you want to access the links through Excel online, it's only possible if you have the folders stored somewhere on a cloud platform (like SharePoint Online, OneDrive).
Best Regards.