The internal flash drives of these branch SRX are not replacable when they fail. But you can try to boot from USB instead.
If you have access to a running SRX240 you can make a snapshot to USB.
Then use this to boot the one with the faultly internal flash.