Resisting high-energy impact events through gap engineering in superconducting qubit arrays