What does ‘flake out’ mean?

( v ) Start acting peculiar, odd, eccentric. He was a good philosophy teacher before he fell in love with a hippy and flaked out.