It's not a hardware problem. It has to do with ambient lighting and the flash elements close proximity to the camera.
I too am having the exact same issue with the red eye. It is a design issue not a restart problem. Ever single time I use the flash every person has red eye that will not correct itself in the edit options.
Page content loaded
User profile for user: suzparkers
Question: iPhone X red eye