I used a resampled image as input, but results in error
can you please specify which operator you used for the resampling, what parameters you chose and which output format was used to resample the Sentinel-2 product?
For Sentinel-2 data, please use this one:
@Abraun is right. The S2Rsampling Processor gives more accurate results. Especially for the viewing geometry bands. But the general resampling should work too.
Instead of defining 20m as reference resolution you could select Band B5.
If it still does not work, please provide one the resampled files. You can do this for example via wetransfer.com and send the link via a direct forum message .