Color pixels artefacts in Unity 2021.3.9f1 editor

Hello!

I’ve updated my Unity project from 2019.4.40f1 to 2021.3.9f1 and got some strange artefacts with objects using URP/Lit or URP/Simple lit shaders.
199930-artefacts-dots.png
It looks like chaotic color dots over the surface. They are visible in Edit and Play mode either.
If I switch to PC platform, they disappear and everything is rendering fine. But with Android platform selected dots are here. If I build apk and run it on a device - everything is ok.

The problem is somehow related to the lighting, because if I select the material and change some lighting-related settings (Receive shadows checkbox, Specular highlights checkbox, Emission map, Environmenal reflection) artefacts are gone.

Tried to regenerate lighting data for the scene, clear GI cache, renew video drivers - still got no luck.

Figured it out myself. Switched Editor rendering API from DX11 to OpenGLCore - bugs have gone, but Unity crashes on many scenes. Then switched to DX12 and, though it is marked as “Experimental” and also had one crash - now it works without issues and artefacts.

(To switch Editor rendering API, go to Project settings → Player, then switch to PC tab, Other settings, unmark “Auto graphics API for Windows”, add appropriate APIs to the list below and rearrange them. First in the list will be used.)