Do not repair the Photos Library unless you are sure, the library is damaged
I would not recommend to repair the Photos Library, unless we have tracked down our Photos Library as the likely culprit, when Photos is acting up.
I listed my reasons for this here in this new user Tip:
When should we repair a Photos Library? - Apple Community
Comments are welcome 😊
MacBook Pro 15”, macOS 10.15