So... The boss is set to move towards the player. While the boss is eating you, the players position is set to be behind the boss. There might be some issues with that system that allows you to move around and the boss follows you while on top of you.
Anyway, thank's for taking the time to play!