After trying to identify the source of the problem for a long time, I decided it's not worth it and completely migrated to a new user account on the same machine. While using the new user account there are no signs of the problem.
I also just realised that the produced the same issue for my MacBook. Will have to migrate to a new user on it too.