Hi Lily Rose and welcome to TalkGraphics

Make sure that your gradient object is sized and positioned on the canvas in whole pixels, then try your export again. XPGD7 anti-aliases on export, and fractional pixels will produce the kind of thin line you're seeing.

Allison