Observation of critical phase transition in a generalized Aubry-Andr\'e-Harper model on a superconducting quantum processor with tunable couplers