You are tasked with repairing and rerunning a failed Databricks job that processes large datasets. The job failed due to a memory error. Describe the steps you would take to diagnose the issue, modify the job settings, and ensure successful rerun of the job.