It's probably a loose connection. For it to be intermittent like that, about the only thing that can cause that is a loose connector, or a wire in the harness going to ground on a bolt or something. Not an easy thing to chase down, but do the connectors first, it's the easiest if you're out of...