This happened to me! I was driving though the middle of an intersection when all of the sudden- car cuts off.
I had the car battery replaced 3 months prior and it didn't make any sounds or act weird-- it just CUT OFF in the middle of a highway intersection.. nissan told me it was because my key battery was dead and there for the car didn't recognize a key