Chosen Solution

Pretty much the title - I was replacing the screen since it was cracked, but noticed that the front camera module could move approx. 3mm whilst in the housing. Could this cause FaceID to not function properly?

Causes for Face ID failure can be flexible and complex. Like broken flex cables or water damage. You can check the teardown guide here as a reference. Why Face ID Not Working After Repair