Retirement tax questions

FIRST ... IMMEDIATELY contact employer A and see if they can or will remove the excess contribution.  If they can't or won't then contact employer B since this must be done ASAP.  Until you know who will do what the rest is immaterial.