The Photos.app on Ventura cannot work with a Photos Library that has been upgraded to a newer system version. Do you still have a backup your Photos Library from the time before you upgraded to Sonoma? if yes, you could start from that backup copy to save your albums and need only to reimport the missing photos you added after the Sonoma upgrade.
But if you have been using iCloud Photos and your Photos library is already in iCloud, downloading a fresh copy by syncing with a new, empty Photos Library as recommended by Yer_Man will be your best option. When we are using iCloud Photos, and we have to enable iCloud Photos again for our Photos Library after iCloud got disabled because we had to restore our Mac, it is much slower to enable iCloud Photos for the existing library than to start over with a new library. Enabling iCloud Photos for a large, existing library will cause a new upload into iCloud, which may take several days or even more than a week to complete. Just downloading to a new, empty library will be much faster.