I had exactly the same problem after fitting a new alternator that lasted for months , it went away completely after all the connections on the alternator ,earth connections on cylinder head and earth strap to engine were cleaned to bright metal with emery cloth