Water that moves too quickly through pipes can cause a kind of shockwave, known as a water hammer or fluid hammer. This causes the pipe to move and knock against adjacent structures.
If you can access the offending pipes without opening your walls, one fix is simply anchoring the pipes better. Pipe clips cost just a few dollars. Or you can install a water-hammer arrestor; SharkBite makes some that don’t require soldering.