Quench dynamics in superconducting nanojunctions: metastability and dynamical Yang-Lee zeros