The tech industry seems to be falling apart. Just about every major company has announced double-digit percentage-point layoffs. Stock valuations have fallen more than 50% in a year. Why does everything seem to be collapsing at once? And what lays ahead?