They did have vaccine variants that failed: We abandoned those in trials. We just don't give them to the general public without this. Some failure is expected when developing drugs, actually - some simply fail and this is part of r&d costs. If someone fabricates data to say it works, well, that is another matter entirely.
And yes, government gets reprimanded as well. Civil servants can lose their jobs, politicians get voted out. Unfortunately, the average person isn't always the best person to say that something was handled poorly and react badly when folks change their minds due to changed information.
Rushing through things like KN-95 has consequences. My brother is a firefighter paramedic and found out that 90% of the kn95 masks issued to him were completely defective.