Throwing out all science because a few scientific findings were in error or deliberately false is like throwing out all your money because some bills in the past have been counterfeit.
Nobody on this thread has called for “throwing out all science”. Instead we need to raise our standards and come down hard on scientists who lie/cheat. There are federal fraud statutes, but they should also lose their tenure, jobs and pensions. Make it high risk to lie/cheat in scientific papers and watch the design of experiments tighten up quickly.