Flexible GPIO routing Arduino shield
For robust connections like this I like to use normal pin headers, but instead of using push-on jumpers I make wire-wrap connections. A good wire-wrap connection is very reliable.

The disadvantage is that you need to have a wire-wrapping tool and the special wire used with it. As an old timer I happen to have that on hand anyway.