Weeks before Europa Clipper was to be shipped for launch, scientists discovered a potentially fatal flaw that might endanger the spacecraft’s ability to study an ocean moon of Jupiter.