I'm having this (almost) exact error too. Unfortunately your mod appears to be causing some general instability now as well. I've spent a bit of time testing and I hope what I found is helpful because your mod is absolutely critical to my war against the bugs.
I was able to isolate two mods as causing the above traceback issues in my load order: Schall's Radioactive Waste and Frost Biters. These also happen to add new capsules to the game.
Unfortunately, after enabling the last handful of mods while reaching the end of my binary search, (Cerys, Change Inserter Drop Lane, Concentrated Solar, Muluna, and AAI Vehicle Group), the mod now without fail causes Factorio to freeze on initialization WHILE loading capsule-launcher until I manually remove the mod from my installation.
Rolling back to 1.4.3 did not resolve
Rolling back to 1.4.2 did not resolve
Rolling back to 1.3.1 DID resolve the failure to initialize.
Rolling back to 1.3.1 also resolved the above traceback errors when loading Schall's Radioactive Waste and Frost Biters. My full mod stack now loads without issue.
Schall's adds a decontamination capsule to the game, and Frost Biters adds a cold capsule. If line 48 of your utils.lua comes across a newly added capsule that doesn't have the full capsule_action.attack_parameters.ammo_type.action.action_delivery.target_effects associated with it, it will come back with a nil value that your utility function does NOT like. For instance, Frost Biters does not have a target effect defined. This can probably be fixed with a null check.