Answer
The linear momentum conservation law would not be violated.
Work Step by Step
If the $\pi^-$ is at rest, then the two quarks can move off in opposite directions with an equal magnitude of linear momentum.
Then the net linear momentum of the two quarks would be zero.
Since the linear momentum can be conserved, the linear momentum conservation law would not be violated.