Do solar flares affect the software when the hardware is turned off?
Not on earth's surface.
In space, solar flares and cosmic rays can flip bits in digital circuits, including any magnetic storage device.