Type of bench is no factor.
Some play on a chair from the dinner table; others, a bar stool.
Height of bench is a partial factor.
Keeping your back straight is the most important factor.
Doing so will lessen and typically will eliminate back pain; sure worked for me and enabled much longer periods of a single session at the piano.