Combining these conditions will produce an error in the console.
repro: Babylon.js Playground
I was unable to identify a minimal reproducible code that clearly shows the exact conditions under which this error occurs.
Because of that, this pg contains a partial extraction of the implementation from my actual project as-is.
I have removed as much unrelated code as possible, but please note that it may still include some code that is not strictly necessary for reproducing the issue.
Thank you for maintaining this great framework!