I get the same problem. I think maybe the problem is that the relevanssi_remove_punct receive strings, NULL values, and objects. I also can get it working with if ( ! is_string( $a ) ) { return; }
Maybe the function should do some checking if type is not string?