There is no problem with the scripture it’s flat earthers claim that a foundation indications a literal foundation I.e a tangible device physically holding up or supporting heaven and earth.
and
Which verse mentions the literal foundation of earth?
This is easy; scripture interprets scripture; the root word
môsāḏâ H4144 (often spelled "masada") means
"fortress" or
"stronghold."
It can't get any more "literal" than this:
Deu 32:22
For a fire is kindled in mine anger, and shall burn unto the lowest hell, and shall consume the earth with her increase, and set on fire the
foundations H4146 of the mountains.
2Sam 22:16
And the channels of the sea appeared, the
foundations H4146 of the world were discovered, at the rebuking of the LORD, at the blast of the breath of his nostrils.
Psa 18:7
Then the earth shook and trembled; the
foundations also H4146 of the hills moved and were shaken, because he was wroth.
Psa 18:15
Then the channels of waters were seen, and the
foundations H4146 of the world were discovered at thy rebuke, O LORD, at the blast of the breath of thy nostrils.
Isa. 24:18
And it shall come to pass,
that he who fleeth from the noise of the fear shall fall into the pit; and he that cometh up out of the midst of the pit shall be taken in the snare: for the windows from on high are open, and the
foundations H4146 of the earth do shake.
Isa. 40:21
Have ye not known? have ye not heard? hath it not been told you from the beginning? have ye not understood from the
foundations H4146 of the earth?
Jer 31:37
Thus saith the LORD; If heaven above can be measured, and the
foundations H4146 of the earth searched out beneath, I will also cast off all the seed of Israel for all that they have done, saith the LORD.
Mic. 6:2
Hear ye, O mountains, the LORD'S controversy, and ye strong
foundations H4146 of the earth: for the LORD hath a controversy with his people, and he will plead with Israel.
Agreed! When the Bible talks about the foundation of the earth, it’s talking about the words that God spoke at creation.
How God accomplished the
physical construction of the earth was through his word.
I can accept “likely” both because that isn’t dogmatically saying these “earth foundation” verses prove the earth is flat.
There's no need to conflate the physical construct of the earth, with a "flat earth" argument. It's enough for the question at hand to accept that the Holy Bible is clear on the
physical foundations of the earth -
however they were created.