Pit Confucianism occurred in the following year, which seems to be caused by rumors and escape of alchemists who handled alchemy for the first emperor, so the capital (Xianyang? The raid is said to involve 460 people, including innocent Confucian scholars.
1) Scholars have not been specifically attacked, so many scholars have experienced the Qin Dynasty and can recite it backwards.
2) Those ancient books themselves are still kept in places like the National Archives of the Qin Dynasty, and they were scattered after the death of the Qin Dynasty.