Interesting - can you advise in which document did Pius X say this? I’d like to read the whole thing.
Pope Leo XII, Arcanum divinae sapientiae (1880)
and
Pope Pius Xi, Casti connubii (1930).