The error code F5-E1 on a KitchenAid oven refers to a problem with the latch when attempting to self-clean the oven. The error code means that the latch fails to lock.
In general, F5-E codes on a KitchenAid appliance refer to a door switch defect. One should first disconnect the power from the oven before investigating the root cause, then check the wires and connections and replace any damaged parts. If the door is not latched, after replacing any damaged wires or connections, one should look at the door switch and the latch switch to see if either requires replacement.
To reset the F5-E1 error code after any maintenance, one should reconnect the power, hold down any key for a minute until the F5 error code disappears and an F2 code appears, select the "cancel" option, and wait for a minute to see if other errors appear.