What might happen if I receive flight instruction in a plane with an airworthiness deficiency?
It can’t void the time, but if an Inspector ever caught a CFI doing something like that, he’s in big trouble.  And more importantly, that CFI should know better than to do something like that in front of a student.