The backtest will stop if the available capital is no longer sufficient to cover losses (“estimated” capital is negative).
But since PRT does not update the capital automatically after the system is started the backtest stops at every loss that exceeds your starting capital. There is a PRT improvement request here: https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/page/2/#post-26075
The way it is at the moment does make sense though, since you don’t want to start a system losing all your capital.