Dear troubled MA..., 
                                 	I can only tell you what I might do.  
First, you must make peace. Go eat humble pie and say it is stress and you are sorry about being so defensive about your project.  
A. In the mean time...go to a professor with whom you have a good relationship and ask politely if they will take you on. if yes... 
 
Second, suggest politely  that since you have annoyed him /her you might  find another adviser for a fresh start in the time remaining . If the  professor wouldn't mind. blah blah be nice.... 
B. Inform new adviser and do paper work necessary... 
 
Third, if A fails, kiss butt and cut your thesis. You can rewrite it later.  Get your grade and leave with great recommendations and a sort of bar brawl  hand shake, ..we fought and then bonded....Thank him /her for opening your eyes. You needed the shake up.  
 
 
If he /she hates you after the first apology then beg your head of  department for forgivenss and assistance. 
 
I guess you thought of all this, but  it might help to hear it laid out... 
best Marguerite