The energy firm, with 1.7 million customers, is the largest gas and electricity company to face difficulties.