Lighting doesn’t stay consistent along the chunk borders while playing on a Realm. Glitch can be repaired by filling the bugged area with blocks and removing them. A lighting glitch will almost always form when a fill command is used. These also show up in dark caves, and inside homes, with a line along a chunk that’s much brighter than it should be.
Please provide a screenshot of this occurring with the F3 debug screen enabled.