predator dies with lights on

I recently purchased a 2004 Polaris predator, great machine very powerful and handling is good, went on a night ride and after a few minutes the bike just died. as I sat there the fan would kick on and off, but wouldn’t start back up. then finally I turned the lights off gave it a few seconds and bike fired right up, when I got back to camp I checked the battery level and it was fine. since then I have ridden the bike many times never a problem. till the other day I was in the dunes and turned on the lights on by mistake. bike just died again. I turned the lights off and bike started again. ive checked all the connections and everything seems ok. does anyone know what the problem is? thanks:beerchug: