@Angel Diaz, It is possible to find out what's causing your boot loop; there are files on your phone called panic logs that will point out exactly what sensor the phone can't read that's causing the boot loop. Read about it here.
[[iPhone Kernel Panics|iPhone Kernel Panics - iFixit|new_window=true]]
If you can get in and read those logs and post what you find here, we can help figure out exactly why you're stuck in a boot loop.
I recently fixed a problem with my grandson's iPhone X that was behaving very similarly to yours; checking the panic logs I found that there was a bad thermal sensor on the charging port assembly that was causing it. Replaced the lightning port and the problem went away; there's a fair chance you may be having the same problem, but the panic logs will tell us for sure.