This reminds me of Doom's ghost monsters, which is a glitch when enemy corpses get squished by a door then resurrected by an Arch-vile, causing them to be almost invulnerable unless getting damaged in specific ways.
The slime might get something similar when equipping the bugged stick and...