Use ulong arithmetic in CalculateBytesPerRow and block size calculations
to prevent integer overflow. Add validation for DataWindow dimensions,
block size limits, and row offsets outside stream bounds.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>