Select a referenced file, then choose File > Show Referenced File in Finder.
You can copy referenced files into your photo library so they’re easier to back up and are automatically stored in iCloud if iCloud Photos is turned on.
Go to the Photos app Repair your photo library on Mac