Hi,Welcome to Just Answer, My name is XXXXX XXXXX forward to helping you today.
F22 is a door lock error
DOOR LOCK ERROR
After 6 failed attempts to lock the door.
Door lock mechanism is broken or removed from door.
Door switch/lock unit failure.
1. Unplug washer or disconnect power.
2. Check door switch/lock unit.
3. Check the wire harness connections to the door switch/lock
unit and Central Control Unit (CCU).
this is the door lock/latch if you don't find anything loose for wiring then replace the lock, below is a link to the part and a video on how to replace it