2013 850 XP HO EPS cuts out…..HELP!

Can ride for 4 hours….all is fine. Suddenly it will start to cut out. Engine light comes on for a second. Then it goes out and will run normally for a bit then does the same thing. The wiring looks good, all connections dialectric greased. Mo dirt in tank or on the pickup. What else can I try?