Shader error in 'VR/SpatialMapping/Wireframe': unrecognized identifier

I have been trying to create an Android build from my Unity 2021 VR project, however, after the build is executed there are a few errors, including two of them complaining about a shader that doesn’t exist.

I have been stuck here the whole day and couldn’t find a proper solution. Any ideas?

Shader error in 'VR/SpatialMapping/Wireframe': unrecognized identifier
'DEFAULT_UNITY_VERTEX_OUTPUT_STEREO_EYE_INDEX' at line 38 (on gles3)