My xenon light is also going on and off as I am driving and making hard turns and going over potholes and road imperfections. I have been having this problem since I’ve got the car 3 years go. It got a bit better as I dug into the car and repaired rear trunk door cables that were causing it to flicker frequently but it still didn’t solve the problem for good. Turns out my xenon bulbs are factory original and the bulb started to slowly “die”. You can try swapping the left bulb to the right and vice versa to see if the problem switches to the other side or not. It could be number of problems causing you trouble but you should start with this amd move on further if it doesn’t help.