Bed failure induced by internal solitary waves