Other than pointing a flashlight in your face or using a very bright high contrast white lock screen, face unlock is typically spotty at best during night hours (and not really that great during the day tbh).
It may not be your preference but I'd suggest using the fingerprint sensor as it is much faster and more accurate and works 100% no matter the light conditions.