What scanning program are you using?
This printer?
https://files.support.epson.com/docid/cpd5/cpd51727/index.html
Take a look at the Main Settings and Advanced Settings.
= = = =
One scan usually results in one image file.
However, I remember seeing some software tool that recognizes if there are multiple photos being scanned and thus creates a separate file for each photograph. May have required an interim end user edit to "box in" each photograph versus the software doing so. Or the software made a "best guess" and the end user corrected the guesses.
Something like the following products (example only - not a recommendation or endorsement).
https://autosplitter.com/#:~:text=AutoSplitter photo scanning software can,save them to separate files.
https://francoismalan.com/how-to-batch-separate-crop-multiple-scanned-photos/
Google "How to scan multiple photos into separate files" for more websites etc..
Revise the search criteria as necessary to filter the results in accordance with your requirements.