Animation played on client. Then, another animations needs to be played and prev one cancelled. This results in server animation lag. How to solve?

So, I have a sword. It does continious animation loop. On client everything is smooth, but on server:

Video: firstly shown server, then shown client
How I can solve this?

(Short logic of how I did that:)

  1. Animation1 is played
  2. It reaches keyframe “SlashEnd”
  3. Animation1 stops, Animation2 starts
  4. Animation2 reaches keyframe “SlashEnd”
  5. Animation2 stops and Animation1 starts.
    And so on.

Can you not just combine the animations, then play 1 looped animation?

I can’t do that because of how system is structurized and planned to be used further