State tax filing

Massachusetts has a rule that you cannot file Form 1-NR/PY as MFJ unless both spouses are reporting income for the same residency or non-residency period.  Here is their wording:  

Note that a joint Form 1-NR/PY is not allowed unless each spouse is reporting income for the same resident or nonresident period. For example, John (a Massachusetts resident) and Jane (a New Hampshire resident) both work in Massachusetts. After they were married in June 2019, John moved to New Hampshire to live with Jane. They cannot file a joint return because their nonresident tax years are different. (Jane lived in New Hampshire during the entire year, but John only lived there for six months.)
https://www.mass.gov/doc/2019-form-1-nrpy-instructions/download

**Answers are correct to the best of my ability but do not constitute tax or legal advice.