I flashed a Magisk patched firmware in the first place to root the device. However, when I noticed the problem, I unrooted the device and reverted it back to its original firmware (the one that I downloaded using Biforst without the patch), but that didn’t solve the problem, and the issue persisted.