If these countries that have surplus electricity used it for more environmentally friendly practices rather than just offering it for dirt cheap prices it would make mining these cryptocoins uneconomical.
They could be using that surplus power to extract CO2 from the atmosphere to help fight climate change or electrolysis of water to get hydrogen that could then be transported to countries with very little natural resources to use as fuel.