MaineHealth says a computer error caused letters to be sent to more than 500 patients incorrectly stating they were dead.