One thing I don't like about the DYNA coils, is how close one of the terminals is to the mounting bolt, I put an insulating material, tape on the nut and heat shrink on the terminal end to prevent  grounding out the ignition system .
One of your pictures shows how close it is .
I added an additional ground 10 gauge ' American wire gauge ' from that ground point on the voltage regulator, back to the battery negative terminal, I didn't like how the factory is relying on the path back to the battery from the frame, through the engine / transmission .
I added a non-OEM battery negative cable from the battery to the front side of the lower right engine to transmission bolt, to replace the OEM cable that goes to the transmission vent speedometer drive area .
Corrosion on the connector for the ICU, is not good, remove as much as you can .
Getting back to your original problem, the engine cutting out .
I had a similar issue about 20 years ago .
I was told to go through the wiring harness, looking for loose connections corrosion, etc . , I found a few pins in the connectors, where the lock that keeps the pin from backing out when the two halves of the connector were broke off, fixed that and no issues for a few years, then it started again and the ignition switch failed shortly afterwards, when you shook the switch when it off of the bike, you could hear parts rattling around inside the switch .
Occasional electrical issues are the hardest to trouble shoot, until they break and stay broke .
