It seems, that it is not exclusively a KSP problem... I've found this topic, when I was looking for the solution for the same problem with superhot. I also had a problem with KSP recently after an update to 5.5. So, apparently, unity5 based games are causing X session to restart.