When someone is mentally exhausted, they don't have the capacity to think of others.
この場合、次のような言い方ができますよ。
ーWhen someone is mentally exhausted, they don't have the capacity to think of others.
「精神的に参っている時、他の人を慮る余裕はない」
mentally exhausted「精神的に消耗した」
don't have the capacity to ...「…する余裕がない」
ご参考まで!