Stackable PCB Sockets/Headers
I see some 19mm headers , maybe you can find 25mm ones
Then for structural rigidity put a dummy header on the other side. Maybe you can find a lower profile part.  Make sure you apply polyurethane to the body of the big part to avoid vibration fatigue to the solder joints.
https://www.mouser.com/datasheet/2/527/mtmm_th-1370249.pdf