Constantly Repairing Photo Library

Almost every time I load Photos, it asks me if I want to repair my library. Once I give it permission, it then proceeds to do so. It typically takes 5-10 minutes.


Does anyone know what is causing this? Is there a way to make it stop.


I am running the most recent macOS 10.15 beta.