How to reproduce:
1. Download and open the attached project
2 Open the "SampleScene" scene
3. Enter "Play" mode
4. Observe the Console window
Expected result: No errors appear
Actual result: "Assertion failed on expression: 'm_ActiveSubShader >= 0 && m_ActiveSubShader < (int)m_SubShaders.size()'" errors appear
Reproduced with: 2020.3.40f1, 2021.2.19f1, 2021.3.11f1 (macOS Monterey 12.6)
Reproduced with: iPhone 12 Pro (14.2.1), iPhone 13 Pro (iOS 15.6.1)
Could not test with: 2022.1, 2022.2, 2023.1 (Project breaks, console errors)