This will solve the problem.because each book will also have the series name and series number as part of the filename so no issue with one book overwriting the other. And it's the easiest solution.
Code:
books/{author} - {series} {series_index:0>2s|| - } {title}