Maybe tell the user what property to set instead.

Also, we could do this same check for SPARK_JAVA_OPTS, since setting the memory there is overridden by whatever variant of SPARK_MEM is in use.