Help drone crash for unknown reason

I made two separate flights earlier. The first flight seemed to do well throughout the flight. The second flight however, began like the first, with a good takeoff and good waypoint switching. The drone was commanded to fly to 30m and hold for 10 seconds, then go to the next waypoint approx 100m away at an altitude of 30m and hold for 10 seconds. The drone was then commanded to move down to 10m and hold for 10 seconds, which it did. Then the drone was commanded to fly back to the home position and hold for 10m, but as the drone was flying back to the home position it fell out of the sky. There was no shaking or swaying, it just fell. Can anyone help me debug this problem? This has happened a few times to me.

flight 1:
https://logs.px4.io/plot_app?log=2c61ada6-c2cf-41f8-938f-90f73d9455f8

flight 2:
https://logs.px4.io/plot_app?log=639b180b-6a46-44d0-8ca9-a027c7f44527