The error is related to memory and is not due to spreadsheet.
OOM (Out Of Memory) error generally arise because, either you are not managing your data properly (like using some heavy images) or you are not switching the screens properly. Follow the tips below (probably 1,2 & 3) to avoid this error