Laser shows an unwanted curved line

This sounds like a thing called Traverse Line or $32 but i’d love to see a pic of your project. You can attach it with the ‘Up arrow from computer’ symbol when you reply.

Have a look at this to see if this is what yours is doing.