A better alternative to Google Photos is Immich!
Immich works nice on Unraid, supports automatic backup from phone, way faster than Nextcloud with Memories, and supports a huge library of photos and videos. Transcodes with GPU axxeleration and uses AI to detect people. Give it a try. Fixed my 1.2TB library
Immich
To import huge amount of files, or even a complete google takeout with tags and albums, use Immich GO:
Immich GO