WTF!?! A companion stabbing you in the back!?!?! That's nuts!!!
It's not that unusual. I had Lydia turn on me in the middle of a dungeon once. I tried running away so that she'd stop attacking me and neither of us would have to die, but then she suddenly screamed "I cannot best you!", bolted in the opposite direction, spontaneously combusted and keeled over. At which point I got sick of putting up with her antics and decided not to reload from an earlier save. Just looted her body and went on my merry way.