I’ve noticed when my head is tilted diagonal and it’s dark it doesn’t work most of the time.
Does anyone have this issue?
Having a hard time with what is tilted but you mean like on a pillow? My guess is part of your face is obscured by the pillow and faceID isn't getting enough of a match. If you turn your head away from the pillow and look at the camera, does it work?
Reset your FaceID and try again. Do it while seated and keep your face as far from the device as setting up allows. You will find it works better under a wide range of scenarios. Do be advised that unchecking "Require Attention for FaceID" essentially turns off the requirement of verifying your retinas which mean the phone will unlock if your eyes are closed! This was added for convenience at the expense of security. If you're OK with this then it may be better for you.