I had those issues a long time ago when I just got the device.
2 options, flash a custom kernel, really only one but excellent option is kirisakura (may be misspelled).
Or, if you know how, it's better to patch the boot.img of your current kernel with magisk instead of flashing via twrp.
There are plenty of guides in these forums. Search for them.