Obvious suggestion, but: this is why I have my phone automatically copy new pictures to Google Pictures, OneDrive, and Dropbox as soon as my phone gets on a good wifi connection.
Maybe I'm naïve but I really cannot imagine Google shutting down Photos with no notice. So if they say they are closing it, I'll just downloaded them en masse and upload elsewhere.
They may have changed it, but if I remember correctly that guarantee in the original quality only lasts for 2 years. So after uploading photos for 2 years, everything is converted to lower quality. They'll also implicitly use your photos for facial recognition and I don't believe there's a way to disable this "feature."
The Pixels get 3 years of free full quality photo uploads and after the 3 years, any new photos uploaded from the phone are compressed. Existing photos do not get downgraded.
Anecdotally, I was the early user of Picassa that was shut down and all my photos have been automatically migrated to Google Photos, so I would still give Google a benefit of the doubt. But recent stunts from them make it more and more difficult to trust them.
So what will happen to your photos when Google decides to "sunset" Google Photos?
Also, what happens to your phone/contacts/purchases when Google (AI?) decides you have violated YouTube T&C and locks your account?
Edit: Finally, are your phone data used for improving the targeted ads?