Can you help me achieve such an electric spark effect

You could try that

eventually combine it with particles.
There are also simpler (texture-based) ways to achieve this fx.
Like through a node material or even more basic, a simple spritesheet animation with a sprite facing the camera.
In the end, the choice will be yours as there’s no single solution to it (thankfully :grin:)