The tax office pursued one woman for five years after her death, causing “unnecessary distress to her family”, an ombudsman has found.