an error is showed while resampling a sentinel2 image
This can have multiple reasons.
The directory can be write protected, the hard drive is full or some other disk error.
You can have a look in the log file.
You can find it by selecting from the menu Help / Show Log Directory. Make sure to reproduce the error first and then open the messages.log file. You can also attach it here.