gpu.c: create_tile: improve error handling