Quadcopter goes into failsafe landing after hovering for a few seconds in loiter

The copter is hovering indoors at around 1m and uses only rangefinder for altitude, not barometer, here is the log:
133 4-6-2022 12-01-04 AM.bin (762.5 KB)