I have a Nexus 5X and it uninstalled Android, I don't know if it was from slight water damage but I don't think any water got inside because it still into recovery and bootloader! I tried factory resetting the device via recovery, unlocking bootloader and installing Stock that way (failed to unlock bootloader). Here is a video I recorded showing the problem.
I made a video if that helps!
Link:
I made a video if that helps!
Link: