Boeing 787 Dreamliner AP flying circles

The problem occurs just sometimes. Might be good hint from @mdapol with too narrow waypoints.
But it also occurs during flight with long distance waypoints.

Last flight was this:

See where it circled, and I didn’t touch anything. Even FD pointed to a different direction.

Might be a bug considering this post: