To calculate the right size of the resistor you need the characteristic data of the load cycle: brake time or duty cycle and the total cycle time. Furthermore, you need the brake power Pbr and the minimum resistance value Rmin which is defined by the VFD.
Try our Braking Resistors Calculator Calculate Continuous & Braking Power from Known Motor Power