@wuxu
Thank you so much for the tip, I temporarily solved my problem. I used a bit of code to remove the trailing backslashes except for the homepage URL.
add_filter('trp_get_url_for_language', 'trpc_remove_end_slash', 10, 6);
function trpc_remove_end_slash($new_url, $url, $language, $abs_home, $lang_from_url_string, $lang_url_slug){
$languageCodes = ['/zh/', '/ja/', '/es/', '/de/'];
foreach ($languageCodes as $code) {
if (substr($new_url, -strlen($code)) === $code) {
return $new_url;
}
}
return untrailingslashit($new_url);
}