Fixes #5285 throw exception if relationship name is greater than 50 chars