The second gap is inside an "island," but the first "licit" gap makes the whole sentence feel okay to a native speaker.
Extracting from a subject might simply be too mentally taxing for the brain to process in real-time. Exceptions and "Parasitic" Gaps
Linguists debate whether these "walls" are built into our mental grammar or caused by how we process information. 1. The Architectural View