Nissan LEAF 2023 Owners Manual
9.1.1.3. Push-button power switch

Do not operate the power switch while driving the vehicle except in an emergency. (The electric vehicle system shuts down when the power switch is pushed 3 consecutive times or the power switch is pushed and held for more than 2 seconds.) If the electric vehicle system stops while the vehicle is being driven, this could lead to a crash and serious injury.
Before operating the power switch, make sure the shift lever is in the P (Park) position.
Owners Manual