Character glitches when I pressed a key repeatedly and walking simultaneously

Hello there! I am currently making a swinging system for fun! I encountered this game breaking bug that I could not get a hang of. When I spam the according key to swing, and walking at the same time, the character suddenly vanish for a second, then avatars, animations are gone out of nowhere, my inputs are also delayed for about 0.5 - 1 seconds. My system heavily rely on constraints and attachments. I added a function that destroys all of those when the key is released, but it did not seem to work.

You can have a look at this bug here: https://gyazo.com/f911658f8bea60b7cce16a6439e4630c

P/s: You can ignore the red parts, as it is used as an indicator for my web zipping system.

Any help is appreciated!