A quantum phase transition from triangular to stripe charge order in NbSe$_2$