Save the raw JSON for the failing record and note its NCT number or trial ID.

List which top-level sections the parser requires and which of those are absent in the failing record.

Change required-field access to optional access with empty defaults for sections the registry does not guarantee.

Add a per-record error handler that logs the trial ID and continues to the next record.

Re-run the import on the saved failing record plus a normal record.