If the judge sets aside the child support part of the agreement, is the rest of the agreement invalid?

No, the other clauses are not negated just because of the inadequacies of one clause (the child support). The judge may ask to have a separation agreement re-drafted and executed. If only several clauses are to be eliminated. This depends solely on the judge and how disrupted the agreement becomes during the hearing.