SSMS closes after installing visual studio
This sounds like a problem with your Visual C++ Redistributable not being the version required by SSMS. Check which version of the VC++ Redistributable is required by SSMS and if you have a later version already installed, then uninstall it. If you have an older version, then download the version required by SSMS and install it manually. Normally I find this problem when developers install Visual Studio before installing SSMS (as Visual Studio comes packaged with a newer version than SSMS does). You can upgrade the VC++ Redistributable after installing SSMS if you need it.