What is the exact error message that you are getting?
Please note that it won't let you change the marital status to widow if you are preparing the return of the spouse at the same time. You would have to do separate returns for the widow and the person who passed away.