What is the content of the 548 images you are trying to merge? Are you trying to make a panorama? Or are you simply trying to get all the images into one document as separate layers. I would expect that many images to merge into a panorama. Instead, use File>Script>Load Files into Stack...