Like everyone else said...
Feed inside the enclosure!!!! There's literally ZERO benefit to feeding in a separate feeding container.
In fact, it's been proven counterproductive. As you learned, it increases your chance of being tagged.
It also increases the chance of the snake regurgitating it's meal.
What you experienced was not aggression, it's a snake in feed mode. Very different. Feed in the enclosure and the problem solves itself. Granted a bite didn't hurt now, you'd rather avoid it especially once the snake gets bigger.