Quitting a PhD program after four years and applying elsewhere
Consult Professor B; he thinks highly of you, and can suggest someone for you to work with, who is not professor A. This may entail moving elsewhere.