The original file size is 3mb with dimension 2480x15844 pixels.
What I did is compressed the image to 1mb size with dimension 800x5111 pixels.

The problem was wordpress auto scales larger images and compresses them which in return get lower resolutions that is why the image was being pixelated