The structure that is in option B can not be linear because there are two lone pairs and two bond pairs which leads to angular or bent geometry
How do we know a bent geometry?
According to molecular geometry, a molecule with three atoms and one lone pair of electrons surrounding the core atom has a bent or V-shaped molecular structure.
Because of the electron repulsion between them, the electron pairs around the core atom are arranged in a bent pattern.
According to the VSEPR hypothesis, the molecular geometry of the center atom will be twisted or V-shaped because it contains four electron pairs—two bonded pairs and two lone pairs. The lone pair causes the bond angles to stray from the perfect tetrahedral angle, giving the structure a bent appearance.