How do I fix "Invalid FieldReference" errors?

I believe that is part of the beats input, so the exception is occurring before the event gets to the pipeline. You will not be able to fix it with a filter.