Battery and oil light come on when trying to start car, take keys out try again car starts no problem and lights go away

When trying to start my car the car won't turn on and the oil and battery light turn on. Then I take the keys out, wait a second, and turn the key again and the car turns on no problem with no more battery and oil lights. The car is new, with 6000 miles. This is the second time this happened in a month. Could it be from switching from reverse to drive before car is fully stopped when pulling out? The car is used for deliveries, is it the constant off and on from that?

My car has 6000 miles.
My car has an automatic transmission.

– Battery and oil light come on when trying to start car, take keys out try again car starts no problem and lights go away