added error handling for too big rasters

I ran into memory problems with big rasters. Now the error message points the user to this potential error source.