I'm sorry for how you must feel.
It isn't a pleasant thing to live with.
Imagine someone who works as a knife grinder. If he do his job right the knifes will be much more dangerous, they may cause accidents or even some will be used intentionally as a deadly weapon.
Then considering these possibilities: an ethical knife grinder should do a shitty job, should quit, or should live in self-reproach?
It may be more complicated if you are a gunsmith. But those guns are used by your customers - so in what extent your ethical evaluation will depend on their actions in this case?
For example if your guns are used in an arming race, and eventually they help avoiding war then you are a saint? If your guns are used in a victorious war then you are a hero? And if they are used for killing innocents then you are an evil person? Or you should be judged by the average probabilities of the global gun usage? Or what?
Poorly sharpened knives are far more likely to cause accidental injuries, and serious ones, than well-sharpened knives. At least in kitchen use, though I'd expect the “a dull knife is more likely to fail to cut what you meant, slideshow off, and strike something else” effect would apply in most uses of knives.
Suppose you work on the grep program GNU Coreutils. Harmless, right?
Some regime could use that to grep out a list of innocent people to put on a hit list.
If you had no idea what the purpose was, that means the program had conceivable purposes of various kinds, not related to killing, just like grep.
If you develop something that is pretty much only for killing, obviously so, then you know, right? Or else are capable of incredible denial.