Hello,
I have been serching for solution of this problem, but I don't find something helpful. This problem is here for like 5 years and still doesn't have a solution.
The problem appears randomly (for example I use sourcetree for 1 hour without problem - switching branches, pushing, pulling... -, then I want to switch the branch and boom, error). After PC restart everything works fine.

I have already tried generating new ssh keys, that solved my problem for like 2 weeks. It's really exhausting to restart pc or generate new keys.
I am on version 3.1.3.3158.
Is there anything I am doing wrong?
Thanks for your help.