Observed the link between dissipative dynamics and phase slips in a fermionic Josephson junction