If a country entirely phased out cash and replaced it with digital currency would it become destabilized?
No and No! Definitely not at the current situation! Firstly if the government phases out fiat money, then all of its citizens need to be technically sound to be able to use digital money and technical infrastructure needs to be improved. So only few and small countries in the world will be able to handle this. Like Japan, Hong Kong and Singapore.
But for countries like China and India, it will be a disaster where only a handful percentage of people are tech-savy. Instead of moving in to a digital currency, it would be a great idea to move towards digital transactions. Instead of cash, people should be encouraged to use cards. That is the first step to be taken so that the economy doesn't have any bad impact.