Quantum phase slips in a resonant Josephson junction