Though I guess Poland is still heated by NG, even if it’s coming from Russia. Heating with electricity is pretty inefficient.
But yeah, finding clean sources of electricity in winter is a challenge for a place like Poland. Poor hydroelectric resource. Only modest geothermal potential. Modest solar (not good for winter load). But wind potential isn't too bad in the north of the country and in the Baltic Sea. Nuclear power should be considered, however, as it is in Finland.
Nuclear has super high capital costs that usually must be subsidized by the state (and insurance definitely needs to be subsidized). Not to mention corruption has to be low enough that a disaster doesn’t occur. I can see less developed countries not being able to take this route.