nice you got it resolved but:
it's not an ignition module. your wrench thinking in sportster terms. it is a cam position sensor(cps).
they seldom fail in the Xb world....again he's thinking in sportster terms.
there are multiple test for a failing CPS with both tech manuals, xb forum diagnostics postings and ecmspy usage
the original symptoms you described not necessarily consistent with a failing cps so me mentioning it would have given the appearance of a blind parts chase.