I don’t know if it’s the best way, but you can add an Animation Notify at the end of your animation (you may want to add it a few frames before the actual end) and in the Animation Blueprint you can add an event for that notify that stops the animation. I’ve done it for an attack animation and it works really well.
You can find out more about Animation Notifies in this tutorial: