I would guess that the snake has been kept in poor conditions (neglect) and not fed often enough.A contented well cared for ball that isn't handled regularly shouldn't strike out like that. If you care for it properly it should settle down.