Failure to reach Brexit deal could cause new territorial dispute between Northern Ireland and the Republic of Ireland.