I had a very similar problem twice in the past. on a 2000 Deuce AND a 2006 Dyna anniversary.
Both had tank mounted ignition switches , and both had bad connectivity issues in there.
Fucking things would falter in roundabouts junctions etc after starting and running , well scary at the time
Clue ? The switches felt "gritty" to operate,!
Labour only , a good stripdown and flush with spray electrical contact cleaner.
Rebuild with dielectric grease and good to go for YEARS after that.
At the time I "blamed" the omnipresent every afternoon seabreeze here in Perth WA.
Good pickup on your part ,I will keep that one in the memory bank thanks !
Dow Corning have a product I use.
looks like it could get messy if you slap the grease everywhere