Sorry, I don't know how to name these vertices properly (green highlighted).
They belong to a face which is technically a quad, but with one zero-angle corner.
amount of connected edges or
amount of adjacent faces includes corner vertices, which is unacceptable, because they define shape of mesh.
Any idea how to select them automatically? Or dissolve.