"Too low altitude" Error During Scale Figure Eight using plane_aerobatics.lua

I’m currently using the plane_aerobatics.lua script to perform the Scale Figure Eight maneuver with a fixed-wing aircraft via Mission Planner. The maneuver does
begin correctly, and the aircraft starts drawing the figure eight. However, midway through the maneuver, I receive a Too low altitude error message in the Mission Planner.
What triggers the “Too low altitude” error during the maneuver?
Which part of the plane_aerobatics.lua code should I modify to prevent the “Too low altitude” error?
Thank you very much in advance for your help and insights.


--[[
    // @Param: AEROM_ALT_ABORT
    // @DisplayName: Altitude Abort
    // @Description: Maximum allowable loss in altitude during a trick or sequence from its starting altitude.
    // @Units: m
--]]

Make that parameter larger to suit your airplane.