I do not believe the 2017 MDImport/export feature was ever fixed so it probably will not work.
Either use 2016 or lower or 2018 or higher to export.
Export the model to Landxml, import to a lower more usable version of Civil3d then export from there.
This error usually occurs when there is an error (a part named incorrectly) in the pipe run.
Before you give up and go to a different version it may be worth checking that your network contains the correct numbering (1.001 - 1.100) and does not have anything else or and duplications(1).
M
Mike Evans
Civil3D 2022 English
Windows 7 Professional 64-bit
Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (8 CPUs), ~4.0GHz With 32768MB RAM, AMD FirePro V4900, Dedicated Memory: 984 MB, Shared Memory: 814 MB