This also happened to me wen I was exploring a cave, except I was nowhere near cobble. I was ale to get out of it by backing away from the cursed cave everytime I came back on and then crashed. I think it has something to do with a certain point in the underground.