Rippling instability of a collapsing bubble