AOC wasn’t even in the Capitol building where all the action was going down. If she was in her office, she was in the Cannon Building which is nearby, but a different building. But of course, many didn’t get the logistics and just assumed that she was in the Capitol building.
According to Rep. Nancy Mace (R-SC), who has an office in the same hall as AOC, two doors away, there were never any rioters in their hall so there was never any physical danger from rioters coming in at any point.
AOC’s building appears to have been briefly evacuated during the day as police checked on a nearby suspicious package that was later cleared.
So her “near-death experience” was an overreaction to a Capitol Police officer knocking on her door to direct her to another building, the Longworth Building, where she then stayed in the office of Rep. Katie Porter (D-CA). Instead of thanking the officer, she paints him as somehow a possible danger of which to be afraid. The Capitol Police were likely trying to evacuate the building quickly, it’s possible the officer was focused on getting people out quickly so likely didn’t have time for all the niceties.