This is not unique to the iPhone X! I have an iPhone 6 and it routinely shuts itself off when I take it out of my pocket in temps below freezing. Sometimes it will show a dead battery (which was previously fully charged) and sometimes it just won't respond. When it does this, warming it up will not help unless it's plugged in. Plugging it in will perform a system reset and then it will come back.