2004 rincon 650 transmission problem?

hi everybody, i have a 2004 rincon 650 and just recently it started having this problem. When riding in either auto or esp the neutral light will flash and moments later ESP will start blinking on the dash. when this happens it will idle just fine but as soon as you give it any throttle it will bog and die and then will not start again until you turn the key off and then back on. I’m stumped on this one and don’t even know where to start any ideas would be greatly appreciated. anyone else have this problem I’ve looked around and can’t find any threats with the same symptoms.