You can upgrade to a Google One subscription to get more storage space. Otherwise go to photos.google.com and download or delete all your photos that have been uploaded to free up disk space.
If you don't want them to auto backup from your phone, open the Photos app, tap your account in the top...