I don’t know the dimensions of your stand but u aren’t going to fit to big of a sump under the stand regardless. I wouldn’t think u can fit a 40 breeder so I would atleast shoot for a 20 L.
Keep in mind that u will only run the sump between 8 & 11” deep. So going with the longer 20L tank could actually give u more water volume & gives u more room for equipment then a 20H tank will. A 20L is 30” long, 12” wide & 12” deep. A 20H is only 24” long, 12” wide & 16” deep. So being u will only run the water level at a certain height the 20L actually gives u a few more gallons of water, but more importantly gives 6” more room in the sump.
Keep in mind that u need to have enough extra room in the sump for any water that drains down from the dt when u turn the return off. So if u use a 20H u could run it a couple inches deeper then u can a 20 L , so the water volume would be about even if u choose to do so. So the main advantages of the 20L would be the 6” of extra room & being easier to work in under the stand. The taller the sump the more difficult it is to access under the stand.