Stall during Takeoff

Hey All :slight_smile:

During takeoff, the autopilot reduces the throttle unexpectedly before reaching the takeoff altitude and the aircraft stalls, any thoughts why it would reduce the throttle max?

Thanks in advance :slight_smile:

Screenshot and the link to the log file below.

Link for the log file: https://drive.google.com/file/d/1PaSNb9mFf53Xz7zueRLPSH1DRulIux29/view?usp=sharing

according to logs - flight mode was switched to Stablilize (by RC channel 8) right before throttle goes down