As I was trying to flash it with RSD lite, the flashed failed. All i got was the splash screen and nothing else. I then downloaded the stock firmware and it failed as well. However, I can still get into the bootloader and my custom recovery TWRP. I have no idea what to do and i'm scared. Is there any way to safely flash my phone back to stock?