Prevent embedding oversized review diffs

Fixed an issue where large or malicious code diffs could be embedded in adversarial review requests, which could cause performance problems. The system now checks diff sizes and handles buffer overflow errors gracefully.