I have seen some modern steam engines cast with very complex cores; the german guy, I forget his name, made his own design and had a foundry cast it in gray iron. It took two attempts by a professional foundry to get a complete fill.
Making the cores for one piston valve and one D-valve would not really be any different if they were located between the cylinders, or at the outsides of the cylinders. It would probably be easier to support the cores if they were located on the ends of the cylinders.
As far as machining, using a D-valve between the cylinders could make for some tricky machining, since you would have to reach in.
Like a 20hp Stanley steam auto engine, with two D-valves between the cylinders; you have to reach in to machine the valve faces.
Long castings can be tricky to fill, and you have to make sure one end does not solidify first and draw molten metal from the other end.
It is an impressive cylinder casting, in my opinion, and impressive machining too.
.
Edit:
The german guy is Rainer Radow.
Here is a link to his website, and a few photos from that website.
All image copyrights by Rainer Radow.
https://radow.org/dampfmaschine-kaiserliche-marine.php
https://steamboating.de/kaiser/dampfmaschine-kaiserliche-marine-03-09.php
https://steamboating.de/kaiser/dampfmaschine-kaiserliche-marine-03-10.php
https://steamboating.de/kaiser/dampfmaschine-kaiserliche-marine-03-11.php
.