Always protect the inverter. In other words, if it is a 8kW inverter with a 20kWh battery backup you size the fuse as 8000/50 × 125%. I.e. 200A fuse. Even though the battery is capable of delivering 400A, the inverter must be protected.
Hope that helps