If you’re inactive in one or more of these services for two years (24 months), Google may delete the content in the product(s) in which you’re inactive.
Similarly, if you’re over your storage limit for two years, Google may delete your content across Gmail, Drive and Photos.
Applies to Gmail, Drive, and Photos
https://blog.google/products/photos/storage-policy-update/