We can reorganize according to the number of spins pointing up, as shown in the table here
Number spins up | Degeneracy | Energy (FE) | Energy (PBC) | Magnetization |
2 | 1 | \( -J \) | \( -2J \) | 2 |
1 | 2 | \( J \) | \( 2J \) | 0 |
0 | 1 | \( -J \) | \( -2J \) | -2 |