Camera reset issue

I’ve created a custom camera reset so when an action key is inputted the camera rotates to its original position behing the character. The issue I’m having is that if the player character is moving during the camera reset the camera will spirral until I stop moving the character, I wanted to know if anyone has done this or knows of a fix.

I’m having this same issue. Have you ever solved it?