Search engine crawlers don't scroll — content loaded only via scroll-triggered JavaScript may never get discovered or indexed unless it's also reachable through a crawlable paginated URL structure underneath.
Infinite scroll on the frontend, paired with real paginated URLs underneath (that update via the browser's history API as the user scrolls) gives you both the UX and a crawlable path — this is more implementation work but the actual fix, not a compromise.
If the collection isn't large enough for infinite scroll to matter much for engagement, standard numbered pagination avoids the complexity entirely and is trivially crawlable by default — not every collection needs the fancier pattern.