Fix error message if maximum size is exceeded