The erosion of trust is _because_ of the poor quality of scientific findings produced by Science the institution (particularly in select fields).
This is the only sustainable path forward for Science the institution. The only alternative is a period of suppression of criticism, inevitably contemporaneous with increasing levels of corruption, followed by massive denunciations and outrage once the dam breaks.
Didn't really work well for the Catholic church. I can't see how it would be any better for Science.