You show a lack of attention to details, which leads be to believe you have major EMI crosstalk from coil or contact current getting into the logic.
Without more details on layout, part numbers and grounding, there are too many things wrong.
Try a small cap between ShReg input to ground,.