Can't open or create 3D project in unity

I’ve had this problem for like two weeks, and it just happened randomly. Few minutes earlier it worked and then it doesn’t.
When I try to open a 3D project in unity I get the following error:
Failed to load window layout. No matter what I try it doesn’t open. I tried to load default layout, revert factory settings, nothing works. I have no problems with 2D projects however.

probably this issue