Analysis of the evolution of the instability process of a coastal cavern