Dynamo Wheel
It's that one part, which connects the bike wheel with the dynamos central axis, that could wear off. Have never seen this part being sold as a spare.
Modified version of "Replacement Gear" by user Patoch.
This will print easy and has some additional reenforcement blocks.
Inner diameter just a little shy of 5mm
heat up slightly to make it fit onto the axis