Auto-translated
Check the 'q5' task setting, specifically the CanUncomplete option. It seems it needs to be set to true to prevent a loss upon failure.and SetRegionBlocked('CheckAstrid', false)
I don't quite understand the purpose of this check. It will always be 1 if the region exists.
Indeed, it was set to false, and I've changed it to true. However, this didn't solve the problem. Here's what the console says at that moment (EWA is installed, by the way).

Regarding the region check, I've given up and implemented some kind of crude workaround to change it along with the coefficient, but it seems to be useless.