Apple’s fascination with endlessly making devices thinner resulted in reliability problems, and ultimately having to backtrack.