Thank you for the screen shot, it shows the problem clearly, but doesn't explain the trigger.
Do you ever use "if constexpr" in your code? There is a known bug that looks like this problem that can be triggered by using a "if constexpr" block inside a function body, so I am wondering if this is what you are seeing.