Are they suppose to glitch out when they die?
No. Is it happening consistently?
This might be just down to how bots work like how the default ones fire guns after death. Also could be something to do with the charging/firing animations of the weapons.
I'll look into it once I'm done with exams in like 2 weeks, but its probably just how bots are.