Ideally config errors should be caught ASAP and once validated errors during data generation should be minimized. Potentially use this: https://github.com/plumatic/schema