POWER TRAIN,ELECTRICAL SYSTEM,EXTERIOR LIGHTINGI was driving the car on March 11th 2022, at around 10pm when the car suddenly lost power, while driving in a rural area of Interstate 5 in northern California when the vehicle lost power, I was unable to see anything at all and had to pull to the shoulder unsure of what was on the shoulder. Dash display stated "headlight detected" and the vehicle shut off. Everything was off including, power, lights, engine, and the vehicle was unresponsive for 30 minutes. After about 30 minutes, the car started up and I decided to drive it. Furthermore, after about 1.5 miles the issue repeated and the car shut off again. Car was off for about 5 minutes, at this point I decided not to drive the car as I felt it was dangerous. The night of March 11th, the vehicle was towed to the nearest Land Rover/Range rover dealership and was diagnosed on Monday the 14th. The dealership diagnosed the vehicle with a defective battery. The battery was replaced and I was assured that the technician was certain the issue is resolved, and they have experienced it with other Range rover sports in the past year. I picked up the vehicle on March 16, 2022. Today, March 19, 2022, while driving the vehicle around 1pm the vehicle, the dashboard displayed “headlight fault detected” and the vehicle was once again shut off, including all the electronics. I do not consider this incident to be as dangerous as it was during daylight and near my house. However, the earlier incidents were very hazardous as it occurred at night, with no vehicle lighting or street lighting in an unfamiliar area. I am not confident driving this vehicle at all, as it could lose power at any moment. Thankfully in this time, the vehicle was in a safe area, but this incident could certainly have happened in the middle of a turn, in an area with no shoulder, or in a construction zone. All of which would dramatically increase the risk of significant injury.