If you call SaveToStream on a workbook that contains at least 257 columns, the returned stream contains corrupt data. If you create a new workbook from the stream, this workbook will not contain the correct values. In addition, all ranges containing at least 257 columns are corrupt. If you save the workbook in a file instead of a stream, the bug does not occur. I reprodcued this bug with version 25.4.0
using Workbook saveWorkbook = new();
Worksheet sheet = saveWorkbook.Worksheets.First();
sheet.Cells[0, 256].Value = 1;
using MemoryStream saveStream = saveWorkbook.SaveToStream();
byte[] bytes = saveStream.ToArray();
saveStream.Close();
using MemoryStream readStream = new(bytes);
using Workbook readWorkbook = new Workbook(readStream);
readStream.Close();
object value = readWorkbook.Worksheets.First().Cells[0, 256].Value; // value is null instead of 1.
Range readRange = readWorkbook.Worksheets.CreateRange("A1:IW1", 0);
string address = readRange.Address; // throws NullReferenceException