raise error when trying to use deprecated kwargs to create_collection