If they were all touching you could print it on an sls machines (selective laser sintering) that works by lasering layers into thin sheets of nylon powder. You end up with a block of nylon powder with a model inside.
So you can print any geometry.

Doing it on fdm would be a nightmare, it'd be one big mess of supports and blocks.

The only way you could relistically print it on fdm would be with soluble support material.
That would probably work - but sls would be my choice - cheap it's not, but plenty of print services around have sls machines.