Singularities and topologically protected states in twisted bilayer graphene