The error is that the plugboard is invalid. We would need to see what you have as the plugboard to be able to guess what the error is. But, I suggest having a look at
https://www.mobileread.com/forums/sh...d.php?t=100949. This has example plugboards. Start by finding one that is close to what you want and try that. Then you can make changes to get exactly what you want.