National Grid Electricity System Operator (ESO) will pay Ofgem £1.5m after failing to provide accurate electricity demand forecasts back in 2017.