I am working with the same script as the original poster and the crashing issue came up again. I have no idea why its crashing as well only that it began doing so after an update from Dec. 2019 was applied. I changed the tif outputs to png and it works. ESRI grids were still not working.
... View more