Didn’t Galileo get sideways with them over some crazy heliocentric theory of his?
Copernicus, as well.
No, he got in trouble for persisting in teaching an unproven theory as a scientific fact -- a big no no at the time.
Galileo's punishment? House arrest in a luxury apartment where he was free to continue his studies.