Software everywhere is getting glitchier. Here’s what’s causing the reliability crisis—and how we might fix it.