Image j stitching error

Good morning everyone. I am having probes with the plug in stitching. When I use the pairwise function and run the stitching command, I end up with a message of error that says:
Stitching internal version: 1.2
ERROR: Could not compute phase correlation: Fourier Transform of failed: fft1= fft2=
ERROR: Pairwise stitching failed.
Do you think that this error might be cause by a lack of RAM of my laptop or it is more related to the 2 stacks I would like to pair?
Thank you very much!