Bayesian framework to constrain the photon mass with a catalog of fast radio bursts