Why is the maximum value of the light sensor from my phone stuck at 85745.0lx?
Yes, of course it could be because you have a custom ROM on your phone. Most likely the ROM has a buggy or poorly integrated touchscreen driver. Drivers in custom ROMs often don't perform correctly, especially in unofficial or pre-release builds, and especially with non-essential functionality like light sensors.