For Apple Books, it's a requirement that all images within your book must be sized so that they contain fewer than 5.6 million pixels.
To check whether an image within your book file exceeds this limit, you can perform a simple calculation. Multiply the height of the image by its width, and if the result is greater than 5.6 million, the image will need to be resized to meet Apple Books' specifications.