Minimizing the impact of scale-dependent galaxy bias on the joint cosmological analysis of large-scale structures