To answer the question (in my opinion), the word should be translated as “became” and not “was”.
Genesis 1:1-2 KJV (1) In the beginning God created the heaven and the earth.
The earth became without form and void.
(2) And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face
of the waters.
I’m looking at Genesis 1:2 as a metaphor for man’s broken relationship with God and it is man who has turned away from God’s righteousness and His knowledge and is currently in “darkness”….the darkness is within man’s heart.
We can see the meaning of the verse in Jeremiah 4. The earth became without form…without righteousness…..as His people are wise to do evil but to do good they have no knowledge.
The earth is void of the knowledge of God as His people have not known Him and have no understanding…as they cannot do the good.
Jeremiah 4:21-23 KJV (21) How long shall I see the standard, and hear the sound of the trumpet?
(22) For my people is foolish, they
have not known me; they are sottish children, and they have none
understanding: they are wise to do evil, but to do good they have no
knowledge.
(23) I beheld the earth, and, lo, it was without form, and
void; and the heavens, and they had no light.
The earth became without form (became without righteousness as there is none that does good) and void ( became without knowledge of God) as all men have turned away from truly seeking after Him and doing His righteousness. “They are altogether become filthy…”
Psalms 53:3-4 KJV (3) Every one of them is gone back: they are altogether become filthy; there is none that doeth good, no, not one.
(4) Have the workers of iniquity no knowledge? who eat up my people
as they eat bread: they have not called upon God.
This is also echoed in the New Testament book of Romans:
Romans 3:10-12 KJV (10) As it is written, There is none righteous, no, not one: (11) There is none that understandeth, there is none
that seeketh after God. (12) They are all gone out of the way, they
are together become unprofitable; there is none that doeth good, no,
not one.
In the beginning God created the heavens and the earth ….and man is without excuse (for becoming without righteousness and without knowledge of Him) as God manifests His invisible, eternal qualities in the visible creation that can be readily seen by all mankind.
Romans 1:18-22 KJV (18) For the wrath of God is revealed from heaven against all ungodliness and unrighteousness of men, who hold the truth
in unrighteousness; (19) Because that which may be known of God is
manifest in them; for God hath shewed it unto them. (20) For the
invisible things of him from the creation of the world are clearly
seen, being understood by the things that are made, even his eternal
power and Godhead; so that they are without excuse:
Mankind became without form…without righteousness…. and void of knowledge (became vain in their imaginations). Darkness is upon the face of the deep….their foolish heart was darkened.
(21) Because that, when they knew God, they glorified him not as God, neither were thankful; but became vain in their imaginations, and
their foolish heart was darkened. (22) Professing themselves to be
wise, they became fools,
Mankind’s heart is all together darkened and needs to hear the knowledge of God (the Light shines in the darkness of man’s own heart).
Thanks for reading and considering.