I'm guessing you've got bad data in your group of captured slaves. This could both mess up the control panel (travelling outside) and throw out this error message when trying to move your captured slaves into the mansion.
Keep a copy of the bad save file set aside in case someone wants to look at it (or edit it). I suggest you reload from before this error for now. Do you know how you might have got bad data into your list of captured slaves?