Giant Protostellar Flares: Accretion-driven Accumulation and Reconnection-driven Ejection of Magnetic Flux in Protostars