Thank you for sharing this painful experience.
So long as no one was hurt, at least it is only money and memories.
Hope we get to hear about insurance outcome, if applicable.
Mega fuse is rated for 2000 AIC at 32V.
What are the specs of the battery bank?
Obviously if 48V not 24V, exceeds rating of fuse.
If 100 Ah or larger LiFePO4, my estimate (based on reports of measured internal resistance) is 20,000 but actual output could be less.
Based on those figures, I think Class-T (125VDC, 20,000AIC) is appropriate, or higher like 50K AIC for some fuses or breakers.
Good to put them in an outbuilding. We know that is advisable for the more hazardous chemistries, but most people here have felt comfortable with LiFePO4 in their house or vehicle. NEC does allow UL listed ESS in or on a dwelling, but not directly in occupied rooms. Rather a closet or garage, with fire or smoke detector.