Ok, the harsh reality is your wife is going to have to learn to stand on her own two feet, your not responsible for her when you guys go your own way.
When my ex left and he was seeing my son he ended up for a time in a grotty little place. My son told me he didn’t like the place and that it was ‘rusty’ so I stopped overnight contact (this was going against a court order for contact) until he found somewhere better to live. We do not have to send our children to grotty places just so that they have contact.
Could your wife or you rent privately in a half decent area? Would that work?