Having the same problem with 5oo error... Have Joomla 3.8 / CB 2.13 / UddIM 4.0 / PHP 7.1
Thinking about bringing it back a generation or two with the PHP... see if that corrects the problem
It actually breaks CB