okay tech savvy people tell me why I'm a dumbass and how to fix this

because my lines keep doing this in photoshop when I’m just trying to draw a normal continuous line and I don’t freaking know why and it’s severely problematic not least in the sense that it is getting on my last wick

hggggggggggggh