“Lucifer’s Hammer” by Larry Niven is till a good read about earth getting bombarded by space rocks.
Jerry Pournelle and Larry Niven. I'm surprised none of the woke sci-fi readers have found stuff in there to cancel. The authors' equating of the bolide with a giant sundae or whatever was amusing. I read it in the early 1980s I think, after I'd read "Ringworld", and probably wouldn't enjoy it now, because I'd be nitpicking the authors' rather poor grasp of the seriousness of such a large impact. That was one of the last fiction books I read (the only ones I've done since then have been audiobooks of Clive Cussler -- I suggest getting the abridged versions if available -- a re-read of LOTR before the movies came out, and a FReeper-recommended "Inherit the Stars" by, uh, last name Hogan I think.
The Black Cloud by astrophysicist Fred Hoyle is pretty good, too. Published in 1957, the book details the arrival of an enormous cloud of gas that enters the solar system and appears about to destroy most of the life on Earth by blocking the Sun’s radiation.
In 1964, astrophysicists on Earth become aware of a cloud of gas and dust, initially thought to be a Bok globule, that is heading for the solar system. The cloud, if interposed between the Sun and the Earth, could wipe out most of the life on Earth by blocking solar radiation and ending photosynthesis. A cadre of astronomers and other scientists is drawn together in Nortonstowe, England, to study the cloud and report to the British government about the consequences of its presence.