Simple solution to this would be to treat ALL mortgages like commercial mortgages. If PITI isn’t below 75-80% of the market rent for the property, then the loan won’t be made.
This would give people a “walk away by renting it out, and go rent something cheaper” option.