Are you in fact using macOS 10.15 Catalina, from 2019?
Have you used any "Cleaner" apps or "Virus Hunter" apps on your Mac?
We'd probably need to know more, but the first thing I think of is: where is your Photos Library located? Is it on an external drive? If so, how is your external drive formatted? To avoid damaging the Photos Library, an external drive must be formatted in either APFS format or Mac OS Extended (Journaled) format. The drive must be connected directly to the Mac by cable, not networked, clouded, NASed, etc. Additionally, the drive can not have had Time Machine on it since it was formatted. There have been so many problems with using incompatible drives that the newest macOSs won't even allow a Library on a non-Mac formatted drive to open, since there is a chance of damaging the Photos database. See this:
https://support.apple.com/en-us/108345
If this drive is in a an incompatible format, stop running Photos with it immediately! A Photos Library can sit on an incompatible drive, but running it may corrupt the database.
You can locate Photos Library by closing Photos and then option-clicking on the Photos icon. This brings up the Library Chooser:

where you can see the list of Libraries that Photos knows about, along with the path to them. Most people have only one Library, but many people have several.
Check these things out, and the we can explore further…