Dear abhijeet150,
Please, read the article in the link below:
Use Memories in Photos on your iPhone, iPad, or iPod touch - Apple Support
Also, as you can read in the screenshot, connect iPhone to a power source until the images are finished scanning.
I hope this solve your problem.
Best wishes,
Adam