Are we talking terabytes?
How many of those photos do you need?
You can use de-googled phones and Immich. I use a sync app ("FolderSync") to upload-then-delete to my server over Tailscale, then Immich picks them up. So I never have storage issues on my phone.
Immich looks like they're trying hard to be a Google Photos clone as far as I can tell. It's a good Android app