How to chroot in builder?

from what I understand the error is that I can’t chroot inside a builder,how can I workaround that?

The builder is sandboxed on purpose so we can’t allow chroot invocations. Sometimes it’s possible to replace the syscalls with fakeroot for example but it really depends on what the program is doing.