Didn't Gallileo get into some kind of trouble too, because his work with outer space conflicted with religious teachings, or something of the like?
They weren’t religious teachings per se. The church officials at that time upheld the view of Aristotle and Ptolemy that all heavenly bodies rotated around the earth (the so-called “geocentric orbit” theory). It may have been that the heliocentric orbit that the telescopes revealed (and that was concurrent with Copernicus’ findings and the theories of Aristarchus) echoed too much of sun worship and Ba’alism, to the church’s view back then.