Straight lines whenever I draw

Hi and thanks for the help!

I have tried using Krita and the drawing works perfectly fine.

I have a Intel Core i5 8th gen with intel optane and a GTX 1050 graphics card and 8gb of DDR4 ram. The drawing works on other programs, such as windows paint, word 2016 and windows ink workspace sketchbook.

Thanks