I have encountered this problem several times. It turns out that each time it was because I had the epub file open in Adobe Digital Editions Reader at the same time. I like to check how the TOC is working using ADE Reader. Once I close ADE Reader Sigil saves just fine. Unfortunatly when it happens I lose all the changes I have made.