EE was tasked with loading operations with another employee. EE attempting to traverse into a shallow excavation. The excavator teetered forward onto the floor the pit causing a jarring of the excavator. During the jarring EE braced left hand on the door frame with fingers outside of the cab. The jarring subsequently unlatched the cab door striking the exposed fingers.