Require Attention for FaceID might be useful. It wouldn't unlock unless you're looking at the phone. So in cases like this just close your eyes unless you can properly lock the phone (e.g. you're already restrained). It's not very reliable for me (sometimes it still works) but seems like it's better than nothing.