Any condition, stipulation, or provision binding any person to waive compliance with any provision of this subchapter or with any rule, regulation, or order thereunder shall be void.
Every contract made in violation of any provision of this subchapter and every contract heretofore or hereafter made, the performance of which involves the violation of, or the continuance of any relationship or practice in violation of any provision of this subchapter, or any rule, regulation, or order thereunder, shall be void (1) as regards the rights of any person who, in violation of any such provision, rule, regulation, or order, shall have made or engaged in the performance of any such contract, and (2) as regards the rights of any person who, not being a party to such contract, shall have acquired any right thereunder with actual knowledge of the facts by reason of which the making or performance of such contract was in violation of any such provision.