Yikes that looks scary!

I can only guess.... but to me that place where you say the scales have come off looks like maybe something scraped the snake? Snakes do rub up against stuff when shedding... is it possible there is something sharp in the enclosure or elsewhere the snake could have come in contact that could cause that if the rubbed against it hard enough? Dunno if that would explain the other places though...