Penalization of non-smooth dynamical systems with noise: ergodicity and asymptotic formulae for threshold crossings probabilities