I meant the dome, not the housing (I'm not an underwater shooter so forgive my incorrect terminology)
The vertical lines above the flare only seem to appear when the flare is towards the top of the image, they are not present in the second image where the flare is central.
I have seen lines like this on my old P&S digital camera when the light is too bright for the sensor. We can discount that, otherwise it would appear every time the sensor was overloaded, regardless of lens or location of the flare.
It's more likely to be a secondary reflection from the dome, from a straight edge in the housing or within the camera itself. Besides the straight lines, the flare itself does rather look like glare coming from the dome.
This is all guesswork, next time you go diving, you could investigate more carefully - take a series of pictures at different angles to the sun, and repeat at different focal lengths and see what combination of factors causes this. If you can see the flare in the viewfinder, then try shading the lens/dome with your hand to see what effect it has. You might be able to find the source and cure it, or you will have to learn to avoid certain angles/focal lengths etc.