The assertions basically suggest that there is no reason you would want to truncate validation target sequences more aggressively than you are truncating train sequences. So if you passed those parameters, you probably made a mistake.