[Build] Add struct validation at GBS build-time (#1660)