MemoryError: Unable to allocate

I have resampled a NETCDF file with 744 bands in hour (31*24) to 24 bands (1 day) daily using xarray function.
A group of 31 individual days were created. However, during the export of the data in .nc format, I am getting memory issues with this message:
“MemoryError: Unable to allocate 18.0 GiB for an array with shape (744, 1801, 3600) and data type float32”
Any help would be appreciated. Thanks