Infamous Nexus 5x bootloop: why does heating or battery drainage allow it to boot?
you should try the 4core fix.

If you can boot your phone and enable oem unloock you are good to go.

Visit this post, there is everything you need.

https://forum.xda-developers.com/nexus-5x/general/tool-bootloop-death-blod-workaround-t3819497

Hope it helped.

Manuel.