Error Message with Validator

I’m getting an Exception Error at bei 0x00007FFD8BB9A906 (DietersGain.vst3) in validator.exe: 0xC0000005: Access error when reading from position 0xFFFFFFFFFFFFFFFF.
Actually everything works fine when I run the program in Cubase but the Validator throws this error. Can you help me? Please see attached screenshot.

I could find the issue and it might be of interest for others since the above is the basic Gain program that is used by Steinberg as a tutorial.
The program fails when the validator checks with 2 input channels and only 1 output channel. Since the Steinberg-tutorial-code does not handle this situation it fails. The tutorial-code checks only on the number of input channels and ignors the number of output channels. So the code tries to write into output channel 2 that does not exist.