I'd turn it off. Our eyes are not meant for IR flashes.
https://sciencing.com/infrared-light-effect-eyes-6142267.htm...
https://sciencing.com/infrared-light-effect-eyes-6142267.htm...
The tiny LED on the front of the iPhone is nowhere near what you'd expect from industrial infrared lasers. I'm not sure the article makes the case that the infrared light from tiny LEDs is harmful.