This sound similar to the problem some users are reporting with Preview. So far I've not seen a solution for their problem.
However you can try the following in order as needed:
1 - as a test launch Photos with the Option key held down and create a new, test library. Import some photos 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 problem is gone open your original library and test gain.
2 - create and log into a new, basic, admin user account, Set up users, guests, and groups on Mac, and 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 is gone then your original account has software installed that is causing the problem.
3 - boot into Safe Mode according to How to use safe mode on your Mac and test to see if the problem persists. Reboot normally and test again.
NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following;
• Verifies your startup disk and attempts to repair directory issues, if needed
• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)
• Prevents Startup Items and Login Items from opening automatically
• Disables user-installed fonts
• Deletes font caches, kernel cache, and other system cache files
NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.