How can the judiciary ensure a balance between quashing FIRs and maintaining public trust in the legal system?

The High Court recently quashed an FIR against a political figure, leading to demands for political action. I want to understand how such judicial decisions can affect public perceptions of justice and what mechanisms can ensure both fairness and accountability.