Strange AI behavior when you have mod conflicts like this is a pain to solve, and often it's just better to find a workaround if you can. The mod Trading Control gives you an option when interacting with traders to send them home. Useful in bugged-out situations like these, and also when they would end up in a dangerous situation and the traders getting killed would cause a relations drop.
https://steamcommunity.com/sharedfiles/filedetails/?id=2007107588&searchtext=trading+control
https://steamcommunity.com/sharedfiles/filedetails/?id=2007107588&searchtext=trading+control