The effect of anisotropic stress state on the stability of perforation cavities