The loads that the rails are carrying is a much bigger factor in the size than the length.
Personally, I'm not a big fan of the round shaft bearings. But if they are supported, than most likely the 20mm will work fine. But if you want to do the calculation, get some info from the manufacturers. You won't be able to find info from Chinese manufacturers, but you can find comparable stuff from NB or Thompson.