That's so weird. It's not by design and it's not supposed to happen. Maybe you are getting hit by the red bullets by the enemies coming from the sides, if not this then i am clueless on what's causing it, i have not encountered this bug even once.
And i am loving godot. its my second game on it and planning to making more hopefully.