To know the size of the required capacitor, you need the following information:
-Inrush current
-Inrush duration
-Acceptable voltage drop
The first two values can be grabbed by measuring with an oscilloscope. The latter depends on battery health/SOC, cabling and inverter low voltage...