### What problem does this PR solve? Fix #5719 Add data type validation for parser_config ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)