Try the following in order as needed:
1 - laugh the library with the Option+Command keys held down to repair the library. If not go to #2.
2 - As a test launch Photos with the Option key held down and create a new, test library and test to see if the same problem persists. Does it? This tells us if the problem is limited to your current library or is more wide spread.
If the test library opens then try your original library again.
3 - Create and log into a new, basic, admin user account, Set up users, guests, and groups on Mac, repeat step #1 to see if the problem persists. This tells us if the problem is limited to your user account or is system wide.
Note: do not launch any 3rd party apps in the account so as to not install any of the supporting files that most create.
If the problem isn't present then your original account has software installed that is causing the problem.