If this fixes the issue, you can use a Magisk module called to keep this setting active across reboots, though keep in mind this slightly lowers device security. Step 5: Dealing with Bootloops
What and Magisk version are you currently running? lucky patcher module magisk fixed
Type setenforce 0 and press Enter to temporarily switch SELinux to mode. Open Lucky Patcher and test if the module works. If this fixes the issue, you can use