This is happening to me right now, so here is an accurate response to your question, not a guess!
Your question: What happens if the powerwall runs out of power at night when the inverters are not on and if the grid is down?
My current situation:
In brief: I have no power rn as the grid is...