Microsoft Corp. and OpenAI are among the US firms that have in recent days pledged to invest £31 billion ($41.8 billion) into artificial intelligence projects in Britain, but industry experts say the commitment could be undermined by the UK’s aging power grid and some of the world’s highest electricity prices.