Cavitation instability in rubber with consideration of failure