Galileo sought the independence of scientific pursuit from religious doctrine. He argued in his Letter to the Grand Duchess Christina that whatever scientific truth one might find must be compatible with the Bible, because the Bible is infallible, and any apparent discrepancy must be due to a misinterpretation of the Bible.
Galileo was not blamed for criticising the Bible but for disobeying papal orders.
We say, pronounce, sentence, and declare that you, the said Galileo, by reason of the matters adduced in the trial, and by you confessed as above, have rendered yourself in the judgement of the Holy Office vehemently suspected of heresy, namely of having believed and held the doctrine which is false and contrary to the sacred and divine Scriptures - that the Sun is the center of the world and does not move from east to west and that the Earth moves and is not the center of the world; ...
What’s “funny” about this is that nowhere in the Bible does it actually maintain that the earth is the center of the universe and that the sun orbits the earth. The Vatican “scholars” were wrong.
The Big Bang, formation of the universe, and evolution of life is sequenced very accurately in Genesis: just missing a few decimal places and powers-of-ten. Which is understandable - the zero had not been invented yet.