Lost original photo - how to export referenced photo as-is
I have an old photo library on my mac which contains precious photos I imported years ago when I had iPhone 5. The photos show up fine in Photo however when I double click any photo, it says it cannot the originals. The problem is I don't have the originals neither (I've changed 2 macs since then) I thought Photo app would have the originals but it turns out all my imports were "referenced" not "copied" to Photo app.
Question: How can I possibly recover the photos? Can I somehow export all the "cached" photos as-is? There are about 5000 photos.
I don't have iCloud.
Thanks in advance.
MacBook Pro 13″, macOS 14.2