Have you had the battery load tested?
Does your gear position indicator on the dash work properly without glitches? If so the switch is probably ok.
TPS can cause trans prog error. Are you getting a check engine light?
I dont think the DME or Fuel pump relays can cause the error.