Mechanical instabilities in the modeling of phase transitions of titanium