RecA filament maintains structural integrity using ATP-driven internal dynamics