Or there could have been human error.
Indonesian frigate Raden Eddy Martadinata had detected movement underwater at a speed of 2.
So whatever went wrong likely did so as the submarine was diving.