As other people have mentioned, this can be a hard problem.
However, malls are typically surrounded by massive amounts of space used for parking. There is a plan for the largest mall in my region to convert all of that land into residential spaces, 2000 apartments. The parking will be moving underground.