The magnetic barrier that protects Earthlings from radiation almost collapsed some 565 million years ago. Here’s what saved it.