If this is a Chapter 8 installation, there is no box size requirement in the code. If it is some other system with wires larger than #6, it appears to be a violation of 314.28(A). The number of wires is only limited by the wire fill rules in Table 1 of Chapter 9.
Don