refactor(groups): more `res.json(500)` => `next(err)` conversions, for
unified error-handling in express middleware