Others have reported their snakes regurgitating when eating during a shed, and it's most likely because they don't feel as safe when they can't see as well and they can't move as quickly when their bellies are full, so if they get startled or scared, they'll regurge to be able to escape predators.