yes i changed it to a non-official one, but this problem didn't happen on other rom.I once heard the 3rd problem happened on several devices. However, it never happened on most (including mine) phones, even if I replaced the original battery with a new one and tried many cables. Have you ever changed your battery to a non-official one? Or is there something happened to your Type-C port on your phone?
btw it's fixed, so no matter.