systemcheck internally uses sudo. But without any fancy stuff. It’s just a big compilation of standard system commands. So this most likely can (and need to) be reduced to a command that would also fail outside of system check.
You could enable bash xtrace with the handy --debug switch.
Full log probably not required. Just the last few lines before the error. Once that’s nailed down, probably the bug can be reproduced without systemcheck.