Magazine springs wear out from the combination of repeated compression and decompression. Leaving the magazine loaded (compressed) will not damage the spring.
Curious, it sounds like you are not keeping the gun loaded at all (no round in the chamber and no mag in). If that is the case, IMO, you may want to re-think that. In a defense situation, you may not have the time to get the mag in and then chamber a round.