Handle XReadBitmapFile errors