SPARK-3837. Warn when YARN kills containers for exceeding memory limits

I verified triggered the issue and verified the message gets printed on a pseudo-distributed cluster.