Stroke goes haywire on certain types of paths

For concave paths, the stroke for straight lines tend to be broken, and the spike/edge of the path looks awful as well.

Strokes for these shapes work fine in Affinity Designer.

Is this a bug?

Can you send me that .glyphs file?