Jesus is the source of light here. It is true the light in verse 5 is different. It is Christ's light in some sense more real that light of the sun. It is the light of God and truth. The verse speaks of the analogy of rays with the truth of the spiritual overcoming the lack of light.I intentionally skipped those verses, but I am glad you mentioned them because it's a perfect segue into my next point. There are different usages of the word light in this passage. So you are confessing the Word is an it, a thing?
John 1
5The Light shines in the darkness, and the darkness has not overcome it.
I know that you cannot understand analogies or nuances of scripture. You will just have to trust the actual meaning explained for you. I have not studied carefully but this analysis exposes the sense of light in a reasonable quick analysis.