This can be resolved by building the data centers to cold countries like here in Finland. Servers are very good at converting electricity to heat, and the heat can be used to heat homes.
Microsoft Azure data center in Espoo is going to heat up 60% of the city’s district heating network.
Also the electricity here in Finland is one of the cleanest, like in all Nordics (hydro, wind, nuclear)