I noticed many people have this exact same problem but no one ever said if they got through with it. My phone managed to encrypt itself, i went to get my charging port repaired and when the phone was starting up it asked to enter my lock screen password. I entered it and said "Decryption unsuccessful. The password you entered is correct, but unfortunately your data is corrupt. It then said for me to facotry reset it to continue using my phone.
However i now noticed that even when i enter the wrong password that same screen pops up to factory reset.
Anytime i reset, hard reset it, put it in recovery mode, fastboot, or try any other options in the bootloader, it always leads me to decrypt the phone and factory reset it.
It also won't connect to my computer at all. I don't know much about these things but can this be solved? or is it the end for this phone?