As discussed in TuringLang/Bijectors.jl#318, in cases like https://github.com/TuringLang/Bijectors.jl/actions/runs/9871431348/job/27259337160?pr=318 (Assertion 'unwrapMode != UnwrapMode::LegalFullUnwrap' failed.) it would be preferable to raise a Julia error rather than abort.