Fix more errors found when retrieving context for a huge example batch (#47039)

Release Notes:

- N/A
1468ee2ae5Max Brunsfeld committed on 1/17/2026, 12:43:11 AM· committed by GitHubparent39e2f26
2 files changedLine totals unavailable