Alex, your problem is almost certainly due to its being in shed, as Kerby pointed out.
Avoiding this risk is one reason for keeping careful records on our animals: Most establish a shed pattern, shedding after xx days of normal feeding regimen. Since you can't always tell visually when a snake is about to "go into shed" or when it's been "blue" and then its skin has cleared immediately prior to shedding, watching records and anticipating a shed can help you avoid this feeding/regurg risk. Watching the records to know when a shed's due will be particuarly helpful with an animal that's exhibited this behavior. The records may also identify for you snakes that simply refuse food during that period in their shed cycle, thus pose no risk, and those that take food and keep it down even in proximity to a shed cycle. Each animal's different and records help familiarize us with each animal's unique behavior.
peace
terry