For reference, here is the ticket with a minimal sample dataset and the code to reproduce the error https://issues.qgis.org/issues/21586 if confirmed, I really think there is a serious bug in the raster calculator on Windows... Cheers and thanks Matteo