Save yourself some trouble mate and just get some pvc end caps, it’s a much better solution.
Thread for them is here DIY fenders - look mom, no 3D printer
I went from many 3d prototypes just trying to get them to stay together under vibration to mudguards I can stand on with no issues.