I need help with my phone. It has LineageOS installed and is rooted with Magisk. The recovery mode is TWRP. Lately, my phone restarts automatically when I play games or watch videos. What is the cause of this problem and how can I fix it? I have been using this custom ROM for more than seven months without any issues. This problem only started recently. Browsing normally is fine, but playing videos makes it restart repeatedly. I have two modules installed: bootloop protector and Revanced module. I also tried AOSP ROM and reset my device three times, but the problem persists.