Path Tracer keeps invalidating samples after switching to one of the "Geom. Inspect." viewmodes

The path tracer keeps invalidating samples after toggling one of the new Geometry Inspection viewmodes (Front/Back Face in this example). The problem goes away after restarting the engine. The issue is present in 5.7.4 version.