So the issue was in external video card. Only after the purchase of the new SDD, I noticed that I am getting BSOD every time any reference to the external video card, for example, when installing the drivers. This explains everything. Temporarily fixed the problem by disabling the video card.
Thanks for replies.