It's a phase tech is going through. It will pass.
I bought a book on Amazon that was either generated by AI or was just really, really bad. Presumably supported by some fake reviews. Eventually some real reviews will warn people about it, and punters will know to avoid them. They will generally avoid a famous author's name and choose a generic one, as their intention will be to stay under the radar for as long as possible. The fake is out there! If the publication date is before this AI gimmickry was released, you should be OK. Students seeking course and revision books, which will be a popular target for scammers, should look for books from major publishers and use their reading lists.
This isn't new. A while back, a vast number of books appeared on the market containing content pulled from Wikipedia or other internet sources. It was generally easy to spot.