I have the same 5EKD genset on my 2016 370. Struggled with the AF fault shutting down the generator since we took the boat on delivery until I traced the problem to the boats wiring harness the generator plugs into.
Kohler insists the manufactures use the Kohler wiring harness, but Brunswick uses and makes their own, less expensive version to plug the generator into. Kohler knows all Brunswick boats may have this problem with their generators.
So short of rewiring the entire generator, you need to find where the shirt is happening. I you pop off the top cover plate on the generator you will see where the Brunswick wiring harness plugs into the back housing in the generator (it’s a male/female plug). On my boat, the loose wire was in the Brunswick male end of their wiring harness that plugs into the genset.
How I found it was, I unsnapped the Kohler female wires from the white housing on the back plate of the genset and routed those wires through the open cover plate (access cover). Then I plugged back in the Brunswick’s wires into it and started the generator. This allowed me to be able to move the wires around until I could re-create the short and trigger the AF Fault.
What I found, if I leave the Brunswick wiring harness torqued into the hard angle plugged into the back of the generator as designed, it creates a short. If I remove the generators female connector from the housing and simply route that wire bundle though the open top, when plugged in that freely, no short and problem fixed and the generator runs great.
That makes it so I cannot use the generators cover plate because there is a wiring bundle out the top, but who cares. It runs great this way, and with no cost it fixes the problem. I was a little worried that in rough seas the wires would jiggle around, but that has never happened after 3 years of rough Lake Superior. The male/female snaps tight.