My linear-gradient is pixelated, is there any way to unpixelize it?

Yes you will have to blur it a little as Sam has shown above or change the angle until its smooth.

e.g.

background:
linear-gradient(45deg, orange 0%, orange 40%, orangered 0%, orangered 60%);

Sams example is best as it doesn’t change the angle.