Chosen Solution

the washer won’t work because it thinks the door is open but I’ve been careful to close it

It is possible that the door switch has failed. You could try getting another door switch and seeing if that makes it work.

Have replaced door lock where do I find the switch