How to stop a camera who is animated by a rotating component in terms of script

Are you doing this in the level blueprint?

If so, you should not. Just do it in a dedicated camera blueprint.