Artifacts in path

I am experiencing what seems to be a bug. When I import a path in Figma, it shows some strange artifacts.

This artifact also shows when exporting to raster (PNG).
It seems to be something having to do with pixel hinting. But I cannot get rid of it.

Anyone knows what might be causing it?