As governments race to attract AI investments, data centres are facing mounting opposition worldwide over their massive land, power and water demands, prompting protests, legal challenges and tighter regulations.