How to create a sword slash particle effect?

You will need to learn how to use UE4’s Cascade or Niagara particle systems.

Here you can see a sped up version on how to create something like it: [UE4] -Wild Impact- Luos's A Particle A Day For A Year! 47/356 - SpeedCreate - YouTube

The lazy way would probably be to purchase a pack on the marketplace.