Same prob here a few times, prob rushed the code then car cut out, wouldn’t start after the code correctly put in, had the indicator flash to acknowledge the code being ok, done the valet mode and it started.
I found when this happens then you just need to input your code wait for the indicator...