Did the bike sit for a long period of time before you bought it? I’ve never had this problem with my wing but my 2008 Boulevard would stall while decelerating. Turns out I wasn’t riding much and the ethanol gas began to break down and I had water in my tank. Now I always make sure to use non-ethanol gas with a stabilizer when I store the bike for the winter or when I know it’s going to sit for long periods of time.
Good luck and ride safe!