Wouldn't bad connections result in lower voltage than expected rather than spiking? Genuinely sorry if I sound stupid I am not at all familiar with this field.
P2504 is for system over charging, P2503 is for system undercharging but that code has since then went away, U0140 is a communication...