ClosedBit error docs

CB_ERR_LOOP_LIMIT

Loop safety budget exceeded. A loop ran past the compiled runtime safety budget.

Why it happens

A loop ran past the compiled runtime safety budget.

How to fix it

Add a real exit condition, lower the work per frame, or use an explicit performance profile for intentional heavy loops.

Copy-paste fix pattern
fn main() {
    u256 i = 0
    while (i < 1000) {
        i += 1
    }
    save i
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.