Mine did that and left me stranded in Waitrose car park.
If you can try a tow start and see if that helps.
Also a failing starter can affect the cps which means it will turn over a lot before starting and put the eml on.
Solenoid kit did not fix mine, the brushes were shot and the windings (?)...