I haven’t tested this a lot, but I have noticed something going on with the visibility of surface edges in rendered viewports. Let me see if I can explain without making a video.
Start with a viewport set to rendered.
In the Display panel visibility settings, turn off surface edges.
Go to Edit …Settings
Click on Display Modes
Click on Copy
Click on the display mode that you started with to create a copy
When I do this, my original display mode that I was using change so that Surface Edges is selected.