handle type creation errors