shuting off

I have a 2012 sportsman 550 w/eps when it sits for a little while and I start and run after a little while it will just shut down and I will not any power or anything for about 5 mins. then the instm. panel lights up and I can start it up with no more problems. I was wondering if any one had this problem or an idea of what to do? thanks for any help I can get.