Did they think like Job 26:7? No way.
"He stretches out the north over the void" ─ what does that mean?
Most of those in your list that supposedly ‘discredits’ the Bible, are written in poetic style.
But they say things that people believed in those days. Why would the authors of the bible think different? And how does it 'discredit' them that they knew the science of their day?
And most don’t even match your description, “the Earth is flat.” It doesn’t say that! Earth, many times in the Bible, refers to people, like in Genesis 11:1
Read the examples again. For instance:
Joshua 10:12+: If the earth is flat, and the center of the universe, you say, "Sun, stand still." If the earth is round, you say, "Earth, cease your rotation". Which did Joshua choose?
Job 38:13: How do you shake the wicked out of the earth by holding its skirts, if the earth is not flat?
Ecclesiastes 1:3 The sun goes down and hastens to the place where it arises. No it doesn't. But if you conceive of the earth as flat, with an underneath, it makes sense.
Psalm 102:25 Of old thou didst lay the foundation of the earth. Why would a round earth need a foundation? A flat earth, like a table, would need one, though.
Daniel 4:10 [...] behold, a tree in the midst of the earth; and its height was great. 11 The tree grew [...] and its top reached to heaven, and it was visible to the end of the whole earth. No matter where you are in the world, you can see the top of this tree. That's because the earth is flat.
Matthew 4:8 Again, the devil took him to a very high mountain, and showed him all the kingdoms of the world and the glory of them. Same again ─ there's a mountain somewhere in or near modern Israel from which you can see China, at least on a clear day. Because the earth is flat.
And you keep not answering my question: since these views reflect the cosmology of their time and place,
why would you expect them to say anything different to flat earth, geocentry, hard dome of the sky, stars equidistant from the earth that would fall to earth if detached, and so on, which is what they say in fact?