it seems to me that it may be best to have the piece of wire that goes into the lego brick insulated with a soft plastic (PVC ?) rather than a hard one; this means that the insulation will be easy to strip should the need arise when tools are limited.
Also, provided there is enough slack/length in the wire, you can temporarily remake the dynamo connections without disassembling the lego brick itself (which is usually a bit fiddly); just jam the complete plug (having removed any loose bits of wire from it) over the connector whilst the bared wires are draped over it.
In an ideal world it would not be necessary to contemplate such eventualities, but stuff happens...
FWIW I find it baffling that so many hub dynamos are arranged so that the connections require either a variable force or a high force to connect/disconnect the wires. It seems obvious to me that folk will occasionally drop the front wheel out without remembering to disconnect the wires first, and that the wires/connections will simply be pulled off. 3/16" (5mm) blades require a high enough force that wires are at very real risk of damage if they are simply yanked off. If such connectors are re-set to a lower force, they lose their ability to self-clean, which is necessary because they are almost invariably made of dissimilar materials, which in combination with nasty crevices, is bound to encourage corrosion.
Years ago I built a very simple arrangement for hub dynamo connection where there were two small (open ended) sockets attached to the hub, into which some simple terminals (in matched material, soldered to the wires) were inserted. The fit of the terminals in the sockets was such that crevices were largely avoided.
The terminals themselves were slightly springy, such that if they should ever work themselves slack they could be easily re-set (eg using a fingernail) so that they were snug again. The insertion force was low, such that pulling on the wires would result in a disconnection with very low risk of damage. The contacts were self-cleaning as the terminals were inserted/removed. Although it never actually happened, if the terminals should ever drop off the wires, the sockets were sized such that it would be easy to stuff a bared wire end into the socket and make a temporary connection that way.
I created this arrangement in a short time in my shed and it worked fine for over 50000 miles (and several decades) on a bike that basically lived outdoors. Why you can't buy anything with similar properties is quite beyond me...
cheers