There are various verses in the Bible that seem to suggest both a flat Earth and a geocentric model of the solar system (whereby the Earth sits in the centre and the sun and the other planets go around it). Here's Ecclesiastes 1:5:
All but the most unreasonable infallibilists say that this is just a metaphor (a very few actually defend geocentrism). Even astronomers and others who know better still talk about the sun "rising" and "setting" when they really mean "the Earth turns". I don't see this sort of thing as a problem. Another verse often mentioned is Joshua 10:13:
But this has a similar solution. It's reasonable that "the sun stood still" could mean "the sun stood still, relative to observers on Earth". Again, I don't regard this as truly problematic. A more difficult verse is Psalm 104:5:
In this case, if this is a metaphor, it's not entirely clear what it actually means. I suppose you could say this refers to the Earth being in a stable orbit, or something like that. But I find this far less satisfying than the solutions to the other verses. Another example is Psalm 75:3:
The natural reading of this is that the Earth rests upon pillars, and is therefore flat. Tektonics says this is just "poetry". Obviously a non-infallibilist explains these last verses by saying they were written by humans with an incorrect understanding of the cosmos. Certainly a belief in a flat Earth would not have been absurd three thousand years ago, so I suspect this is indeed what occurred.