Error in position set point generation mission mode

Waypoint navigation keeps failing after reaching waypoint 2 as seen in the plots. There is an erroneous position set point generated between waypoint 2 and 3. Why is this happening?

Can you upload/share the whole log file?

https://logs.px4.io/plot_app?log=6fe15047-e79d-4847-a8c9-f65331ccfc01