Batteries going dead new solar and batteries

I have replaced the batteries and the solar panel but it’s not keeping the batteries charged
I still have to swap batteries every 10 days or so

Have you adjusted your camera’s motion detection settings? It could be your camera is so busy with notifications it runs out of battery power.
My doorbell was sort of like that and once I tweaked my settings to have less motion notifications it was able to keep the battery charged.