There is no minimum number of nodes which must retain a transaction for it to be valid. As long as a node can find the valid transactions which are identified by a block (either in its own mempool or by querying other nodes) the transaction is valid. We consider the state of node's mempools to not be in consensus, so we don't make decisions based on that information.