Hi inzheneher,
Have you checked to see if this still occurs in a separate user account? This will help determine if there is an issue at the user level or globally on your Mac. You can learn how to create one here:
"Add a user
- On your Mac, choose Apple menu
> System Settings, then click Users & Groups
in the sidebar. (You may need to scroll down.) - Click the Add Account button below the list of users on the right (you may be asked to enter your password.)
- Click the New Account pop-up menu, then choose a type of user.
- Administrator: An administrator can add and manage other users, install apps, and change settings. The new user you create when you first set up your Mac is an administrator. Your Mac can have multiple administrators. You can create new ones, and convert standard users to administrators. Don’t set up automatic login for an administrator. If you do, someone could simply restart your Mac and gain access with administrator privileges. To keep your Mac secure, don’t share administrator names and passwords.
- Standard: Standard users are set up by an administrator. Standard users can install apps and change their own settings, but can’t add other users or change other users’ settings.
- Sharing Only: Sharing-only users can access shared files remotely, but can’t log in to the computer or change settings. To give the user permission to access your shared files or screen, you may need to change options in File Sharing, Screen Sharing, or Remote Management settings. See Set up file sharing and Share the screen of another Mac.
For more information about the options for each type of user, click the Help button in the lower-left corner of the dialog.
4. Enter a full name for the new user. An account name is generated automatically. To use a different account name, enter it now—you can’t change it later.
5. Enter a password for the user, then enter it again to verify. Enter a password hint to help the user remember their password.
6. Click Create User."
Here's a link to the full resource: Add a user or group on Mac - Apple Support
If that doesn't help you isolate the issue we'd recommend reaching out to support here: Get Support
Take care.